Merge pull request #4096 from influxdata/feat/dar-303-hourselection-improvement

fix: add location parameter to hourSelection()
pull/4116/head
sunbryely-influxdata 2022-06-13 10:59:12 -07:00 committed by GitHub
commit b82d35baf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@ The `hourSelection()` function retains all rows with time values in a specified
hourSelection(
start: 9,
stop: 17,
location: {offset: 0h, zone: "UTC"},
timeColumn: "_time",
)
```
@ -39,6 +40,10 @@ Hours range from `[0-23]`.
The last hour of the hour range (inclusive).
Hours range from `[0-23]`.
### location {data-type="record"}
Location used to determine timezone.
Default is the [`location` option](/flux/v0.x/stdlib/universe/#location).
### timeColumn {data-type="string"}
The column that contains the time value.
Default is `"_time"`.