Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load loads a timezone from the known timezone list and IANA database. Returns error if the `name` is not found.
Types ¶
type Info ¶
type Info struct {
RegexPatterns []string
AlternativePatterns map[*regexp.Regexp]string
Timezones map[string]int
}
Info is the data for parsing timezone from a string.
type OffsetData ¶
func PopTzOffset ¶
func PopTzOffset(str string) (string, OffsetData)
PopTzOffset extracts timezone data from str then return the str with the timezone code removed.
func (OffsetData) IsZero ¶
func (tod OffsetData) IsZero() bool
Click to show internal directories.
Click to hide internal directories.