Skip to content

Commit fe09b06

Browse files
Update hour.md with example for local time (#5873)
* Update hour.md with example for local time Update hour.md with example for local time * Update content/flux/v0/stdlib/date/hour.md --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
1 parent 5511b9f commit fe09b06

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/flux/v0/stdlib/date/hour.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Default is the `location` option.
6262
- [Return the hour of a time value](#return-the-hour-of-a-time-value)
6363
- [Return the hour of a relative duration](#return-the-hour-of-a-relative-duration)
6464
- [Return the current hour](#return-the-current-hour)
65+
- [Return the hour in localtime ](#return-the-hour-in-localtime)
6566

6667
### Return the hour of a time value
6768

@@ -96,3 +97,11 @@ date.hour(t: now())
9697

9798
```
9899

100+
### Return the hour in local time
101+
102+
```js
103+
import "date"
104+
import "timezone"
105+
106+
date.hour(t: r._time, location: timezone.location(name: "Europe/Berlin"))
107+
```

0 commit comments

Comments
 (0)