Docs Methods Duration AbsAbsReturns the absolute value of the given time.Duration value.SyntaxDURATION.AbsReturnstime.Duration{{ $d := time.ParseDuration "-3h" }} {{ $d.Abs }} → 3h0m0sLast updated: October 16, 2026 : content: Use := in duration examples (c3fb5f07d)Improve this page