content/flux/v0/stdlib/timezone/location.md
timezone.location() returns a location record based on a location or timezone name.
(name: string) => {zone: string, offset: duration}
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) Location name (as defined by your operating system timezone database).
import "timezone"
timezone.location(name: "America/Los_Angeles")// Returns {offset: 0ns, zone: "America/Los_Angeles"}
import "timezone"
option location = timezone.location(name: "America/Los_Angeles")
[!Note] The
locationoption only affects boundaries used for windowing, specifically around time shifts like daylight savings. It does not change timestamps in the_timecolumn, which are always UTC.