tzdb

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package tzdb loads the pinned IANA tzdb source used to generate ECMA-402 time-zone identifier records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCLDRPrimaryAliases

func LoadCLDRPrimaryAliases(path string) (map[string]string, error)

Types

type Pin

type Pin struct {
	Version string `json:"version"`
	URL     string `json:"url"`
	SHA256  string `json:"sha256"`
	License string `json:"license"`
}

func ReadPin

func ReadPin(path string) (Pin, error)

type Record

type Record struct {
	Identifier string
	Primary    string
}

type Region

type Region struct {
	Code  string
	Zones []string
}

type Registry

type Registry struct {
	Version string
	SHA256  string
	Records []Record
	Regions []Region
}

func LoadArchive

func LoadArchive(path string, pin Pin, primaryAliases map[string]string) (Registry, error)

Jump to

Keyboard shortcuts

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