Abs
Returns the absolute value of the given time.Duration value.
- Syntax
- DURATION.Abs
- Returns
- time.Duration
{{ $d := time.ParseDuration "-3h" }}
{{ $d.Abs }} → 3h0m0sLast updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page