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:
December 4, 2023
:
Squashed 'docs/' changes from 4d936aee6..4dd2d6415 (35dec7c96)
Improve this page