mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-18 17:46:45 -05:00
5fd1e74903
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
17 lines
347 B
Markdown
17 lines
347 B
Markdown
---
|
|
title: Abs
|
|
description: Returns the absolute value of the given time.Duration value.
|
|
categories: []
|
|
keywords: []
|
|
action:
|
|
related:
|
|
- functions/time/Duration
|
|
- functions/time/ParseDuration
|
|
returnType: time.Duration
|
|
signatures: [DURATION.Abs]
|
|
---
|
|
|
|
```go-html-template
|
|
{{ $d = time.ParseDuration "-3h" }}
|
|
{{ $d.Abs }} → 3h0m0s
|
|
```
|