content/flux/v0/stdlib/date/boundaries/wednesday.md
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.
() => {stop: time, start: time}
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
import "date/boundaries"
day = boundaries.wednesday()
from(bucket: "example-bucket")
|> range(start: day.start, stop: day.stop)