aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/content/en/methods/duration/Abs.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/methods/duration/Abs.md')
-rw-r--r--docs/content/en/methods/duration/Abs.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/content/en/methods/duration/Abs.md b/docs/content/en/methods/duration/Abs.md
new file mode 100644
index 000000000..d035f97b6
--- /dev/null
+++ b/docs/content/en/methods/duration/Abs.md
@@ -0,0 +1,17 @@
+---
+title: Abs
+description: Returns the absolute value of the given time.Duration value.
+categories: []
+keywords: []
+action:
+ related:
+ - functions/time/Duration
+ - functions/time/ParseDuration
+ returnType: time.Duration
+ signatures: [DURATION.Abs]
+---
+
+```go-html-template
+{{ $d = time.ParseDuration "-3h" }}
+{{ $d.Abs }} → 3h0m0s
+```