1.7 KiB
1.7 KiB
title | description | menu | weight | flux/v0/tags | deprecated | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
boundaries.wednesday() function | `boundaries.wednesday()` returns a record with `start` and `stop` boundary timestamps for last Wednesday. |
|
201 |
|
0.177.1 |
boundaries.wednesday()
returns a record with start
and stop
boundary timestamps for last Wednesday.
Last Wednesday is relative to now()
. If today is Wednesday, the function returns boundaries for the previous Wednesday.
Function type signature
() => {stop: time, start: time}
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
Examples
Query data collected last Wednesday
import "date/boundaries"
day = boundaries.wednesday()
from(bucket: "example-bucket")
|> range(start: day.start, stop: day.stop)