system.time() function
The system.time()
function returns the current system time.
import "system"
system.time()
Examples
import "system"
data
|> set(key: "processed_at", value: string(v: system.time() ))
system.time() vs now()
system.time()
returns the system time (UTC) at which system.time()
is executed.
Each instance of system.time()
in a Flux script returns a unique value.
now()
returns the current system time (UTC).
now()
is cached at runtime, so all instances of now()
in a Flux script
return the same value.
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.