timezone.fixed() function
timezone.fixed()
returns a location record with a fixed offset.
Function type signature
(offset: A) => {zone: string, offset: A}
Parameters
offset
(Required) Fixed duration for the location offset. This duration is the offset from UTC.
Examples
Return a fixed location record
import "timezone"
timezone.fixed(offset: -8h)// Returns {offset: -8h, zone: "UTC"}
Set the location option using a fixed location
import "timezone"
// This results in midnight at 00:00:00-08:00 on any day.
option location = timezone.fixed(offset: -8h)
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.