hugo/docs/content/en/methods/duration/Abs.md
2023-12-04 15:24:01 +01:00

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