tz

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Valid

func Valid(tz string) bool

Valid returns true if the time zone is valid. You can pass a time zone name or zone.

Types

type Entry

type Entry struct {
	Name string `json:"name"`
	Zone string `json:"zone"`
}

Entry is a time zone entry.

func All

func All() []Entry

All returns all time zones, sorted by the zone.

func Find

func Find(tz string) *Entry

Find will look up an entry for a time zone. You can pass a time zone name or zone. Returns nil on not found.

Jump to

Keyboard shortcuts

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