docs/content/en/functions/time/In.md
{{< new-in 0.146.0 />}}
The time.In function returns the given date/time as represented in the specified IANA time zone.
UTC, the time is returned in UTC.Local, the time is returned in the system's local time zone.{{ $layout := "2006-01-02T15:04:05-07:00" }}
{{ $t := time.AsTime "2025-03-31T14:45:00-00:00" }}
{{ $t | time.In "America/Denver" | time.Format $layout }} → 2025-03-31T08:45:00-06:00
{{ $t | time.In "Australia/Adelaide" | time.Format $layout }} → 2025-04-01T01:15:00+10:30
{{ $t | time.In "Europe/Oslo" | time.Format $layout }} → 2025-03-31T16:45:00+02:00