Flux universe package (built-in)

The Flux universe package includes all functions that do not require a package import statement and are usable without any extra setup. The “built-in” functions in the universe package provide a foundation for working with data using Flux.


The universe package provides the following options:

option now = () => system.time()
option location = timezone.utc


Function option that, by default, returns the current system time. The value of now() is cached at query time, so all instances of now() in a script return the same time value.


Location used to determine timezone. Default is timezone.utc.

Flux uses the timezone information (commonly referred to as “tz” or “zoneinfo”) provided by the operating system.


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.