Documentation
¶
Overview ¶
Package timezones provides an slice of timezones as well as a simple API for accessing and searching timezones.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoTimeZonesFound = errors.New("no time zones were found")
View Source
var TimeZoneNotFound = errors.New("time zone not found")
Functions ¶
This section is empty.
Types ¶
type TimeZone ¶
type TimeZone struct {
Value string `json:"value"`
Abbr string `json:"abbr"`
Offset float32 `json:"offset"`
Isdst bool `json:"isdst"`
Text string `json:"text"`
Utc []string `json:"utc"`
}
TimeZone represents an international date/time zone.
func GetTimeZoneByOffset ¶ added in v1.1.0
GetTimeZoneByOffset returns all TimeZones where the Offset field equals the offset argument.
func GetTimeZoneByValue ¶
GetTimeZoneByValue returns a TimeZone by the Value field.
Click to show internal directories.
Click to hide internal directories.