docs/content/en/methods/duration/Abs.md
raw| 1 | --- |
| 2 | title: Abs |
| 3 | description: Returns the absolute value of the given time.Duration value. |
| 4 | categories: [] |
| 5 | keywords: [] |
| 6 | params: |
| 7 | functions_and_methods: |
| 8 | returnType: time.Duration |
| 9 | signatures: [DURATION.Abs] |
| 10 | --- |
| 11 | |
| 12 | ```go-html-template |
| 13 | {{ $d = time.ParseDuration "-3h" }} |
| 14 | {{ $d.Abs }} → 3h0m0s |
| 15 | ``` |