Documentation

timezone package

The timezone package defines functions for setting timezones on the location option in package universe. Import the timezone package:

import "timezone"

Constants

timezone.utc = {zone: "UTC", offset: 0h}
  • timezone.utc is the default location with a completely linear clock and no offset. It is used as the default for location-related options.

Functions


Was this page helpful?

Thank you for your feedback!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.