aboutsummaryrefslogtreecommitdiffhomepage
path: root/content/en/methods/time/Hour.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/en/methods/time/Hour.md')
-rw-r--r--content/en/methods/time/Hour.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/content/en/methods/time/Hour.md b/content/en/methods/time/Hour.md
new file mode 100644
index 000000000..58ed00260
--- /dev/null
+++ b/content/en/methods/time/Hour.md
@@ -0,0 +1,21 @@
+---
+title: Hour
+description: Returns the hour within the day of the given time.Time value, in the range [0, 23].
+categories: []
+keywords: []
+action:
+ related:
+ - methods/time/Year
+ - methods/time/Month
+ - methods/time/Day
+ - methods/time/Minute
+ - methods/time/Second
+ - functions/time/AsTime
+ returnType: int
+ signatures: [TIME.Hour]
+---
+
+```go-html-template
+{{ $t := time.AsTime "2023-01-27T23:44:58-08:00" }}
+{{ $t.Hour }} → 23
+```