timezone package

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

import "timezone"


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.


Was this page helpful?

Thank you for your feedback!

The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more