Documentation
¶
Overview ¶
Package timeutil provides timezone-aware time formatting utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatRFC3339 ¶
FormatRFC3339 formats the given time in RFC3339 format using the timezone from TZ environment variable.
func GetLocation ¶
GetLocation returns the timezone location based on TZ environment variable. The result is cached after the first call.
func ResetLocationCache ¶
func ResetLocationCache()
ResetLocationCache resets the cached location. This is intended for testing purposes only.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.