Documentation

timezone.location() function

Flux 0.134.0+

timezone.location() constructs a timezone record based on a specific location. Setting the timezone by location accounts for location-based time shifts in the clock such as daylight savings time or summertime.

import "timezone"

timezone.location(name: "America/Los_Angeles")

// Returns {offset: 0ns, zone: "America/Los_Angeles"}

Parameters

name

(Required) Location name (as defined by your operating system timezone database).


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.