tzdata

package
v0.0.0-...-889a765 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusInitiating    = 100
	StatusRestartMarker = 110
	StatusReadyMinute   = 120
	StatusAlreadyOpen   = 125
	StatusAboutToSend   = 150

	StatusCommandOK             = 200
	StatusCommandNotImplemented = 202
	StatusSystem                = 211
	StatusDirectory             = 212
	StatusFile                  = 213
	StatusHelp                  = 214
	StatusName                  = 215
	StatusReady                 = 220
	StatusClosing               = 221
	StatusDataConnectionOpen    = 225
	StatusClosingDataConnection = 226
	StatusPassiveMode           = 227
	StatusLongPassiveMode       = 228
	StatusExtendedPassiveMode   = 229
	StatusLoggedIn              = 230
	StatusLoggedOut             = 231
	StatusLogoutAck             = 232
	StatusAuthOK                = 234
	StatusRequestedFileActionOK = 250
	StatusPathCreated           = 257

	StatusUserOK             = 331
	StatusLoginNeedAccount   = 332
	StatusRequestFilePending = 350

	StatusNotAvailable             = 421
	StatusCanNotOpenDataConnection = 425
	StatusTransfertAborted         = 426
	StatusInvalidCredentials       = 430
	StatusHostUnavailable          = 434
	StatusFileActionIgnored        = 450
	StatusActionAborted            = 451
	Status452                      = 452

	StatusBadCommand              = 500
	StatusBadArguments            = 501
	StatusNotImplemented          = 502
	StatusBadSequence             = 503
	StatusNotImplementedParameter = 504
	StatusNotLoggedIn             = 530
	StatusStorNeedAccount         = 532
	StatusFileUnavailable         = 550
	StatusPageTypeUnknown         = 551
	StatusExceededStorage         = 552
	StatusBadFileName             = 553
)

FTP status codes, defined in RFC 959

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 FTPDownload

func FTPDownload(target string) (bytes.Buffer, error)

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

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