now() function returns the current time (UTC).
Function type: Date/Time
Output data type: Time
data |> range(start: -10h, stop: now())
now() vs system.time()
now() returns the current UTC time.
now() is cached at runtime, so all instances of
now() in a Flux script
return the same value.
system.time() returns the current
system time of the host machine, which typically accounts for the local time zone.
This time represents the time at which
system.time() it is executed, so each
system.time() in a Flux script returns a unique value.
Bug Reports and Feedback
Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation. Submit feedback using one of the following methods: