ianam

package
v0.0.0-...-556d222 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IANATimezone

type IANATimezone string

func (*IANATimezone) String

func (tz *IANATimezone) String() string

type TZDBResponse

type TZDBResponse struct {
	Zones []*ZoneInfo `json:"zones"`
}

TZDBResponse describe timezonedb response body

type Timezones

type Timezones []IANATimezone

func (Timezones) Len

func (t Timezones) Len() int

func (Timezones) Less

func (t Timezones) Less(i, j int) bool

func (Timezones) Swap

func (t Timezones) Swap(i, j int)

type ZoneInfo

type ZoneInfo struct {
	Code             string       `json:"countryCode"`
	Name             string       `json:"countryName"`
	Timezone         IANATimezone `json:"zoneName"`
	GMTOffsetSeconds int          `json:"gmtOffset"`
}

ZoneInfo describe a timezone information NOTE: country code is not always unique

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL