boundaries.wednesday() 函数
boundaries.wednesday()
返回一个记录,其中包含上周三的 start
和 stop
边界时间戳。
上周三是相对于 now()
。如果今天是星期三,该函数将返回上周三的边界。
函数类型签名
() => {stop: time, start: time}
有关更多信息,请参阅 函数类型签名。
示例
查询上周三收集的数据
import "date/boundaries"
day = boundaries.wednesday()
from(bucket: "example-bucket")
|> range(start: day.start, stop: day.stop)
此页面是否对您有帮助?
感谢您的反馈!