tzx

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAbbreviatedTimezone

func GetAbbreviatedTimezone(name string) string

GetAbbreviatedTimezone returns the abbreviated timezone with UTC offset for the provided zone name in the following format: EST (UTC-05:00).

func GetCountriesWithPrefix

func GetCountriesWithPrefix(s string) []tz.Country

GetCountriesWithPrefix returns the list of countries that begin with the prefix s, for up to the first 5 characters of the country name.

func GetCountryByName

func GetCountryByName(name string) (*tz.Country, bool)

GetCountryByName returns a single tz.Country that matches the country name provided and whether it was found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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