Abs
Returns the absolute value of the given time.Duration value.
Syntax
DURATION.Abs
Returns
time.Duration
{{ $d = time.ParseDuration "-3h" }}
{{ $d.Abs }} → 3h0m0s
Last updated:
March 5, 2025
:
content: Remove "related" array from function and method pages (2fcd21ee5)
Improve this page