1.6 KiB
1.6 KiB
title | description | menu | weight | flux/v0.x/tags | introduced | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
today() function | `today()` returns the now() timestamp truncated to the day unit. |
|
101 |
|
0.116.0 |
today()
returns the now() timestamp truncated to the day unit.
Function type signature
() => time
{{% caption %}}For more information, see Function type signatures.{{% /caption %}}
Examples
Return a timestamp representing today
option now = () => 2022-01-01T13:45:28Z
today()// Returns 2022-01-01T00:00:00.000000000Z
Query data from today
from(bucket: "example-bucket")
|> range(start: today())