aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/content/en/methods/time/Local.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/methods/time/Local.md')
-rw-r--r--docs/content/en/methods/time/Local.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/content/en/methods/time/Local.md b/docs/content/en/methods/time/Local.md
new file mode 100644
index 000000000..bd40e3a44
--- /dev/null
+++ b/docs/content/en/methods/time/Local.md
@@ -0,0 +1,17 @@
+---
+title: Local
+description: Returns the given time.Time value with the location set to local time.
+categories: []
+keywords: []
+action:
+ related:
+ - methods/time/UTC
+ - functions/time/AsTime
+ returnType: time.Time
+ signatures: [TIME.Local]
+---
+
+```go-html-template
+{{ $t := time.AsTime "2023-01-28T07:44:58+00:00" }}
+{{ $t.Local }} → 2023-01-27 23:44:58 -0800 PST
+```