tzdata

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadOldNames

func DownloadOldNames() (map[string]string, error)

DownloadOldNames fetches the list of old tz names and returns a mapping

func ExtractTarGz

func ExtractTarGz(src io.Reader, dst io.Writer, name string) error

func UpdateWindowsTZMapping

func UpdateWindowsTZMapping(target io.Writer) error

Types

type MapTimezones

type MapTimezones struct {
	MapZone []MapZone `xml:"mapZone"`
	Type    string    `xml:"type,attr"`
}

type MapZone

type MapZone struct {
	Other     string `xml:"other,attr"`
	Territory string `xml:"territory,attr"`
	Type      string `xml:"type,attr"`
}

type SupplementalData

type SupplementalData struct {
	WindowsZones WindowsZones `xml:"windowsZones"`
}

func DownloadWindowsZones

func DownloadWindowsZones() (SupplementalData, error)

DownloadWindowsZones fetches Windows mapping info from unicode.org

type Version

type Version struct {
	Number string `xml:"number,attr"`
}

type WindowsZones

type WindowsZones struct {
	MapTimezones []MapTimezones `xml:"mapTimezones"`
}

Jump to

Keyboard shortcuts

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