1
0
Fork 0
hugo/docs/content/en/methods/duration/Abs.md

347 B

title description categories keywords action
Abs Returns the absolute value of the given time.Duration value.
related returnType signatures
functions/time/Duration
functions/time/ParseDuration
time.Duration
DURATION.Abs
{{ $d = time.ParseDuration "-3h" }}
{{ $d.Abs }} → 3h0m0s