tzutil

package
v0.0.0-...-fa26777 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timezone

type Timezone struct {
	Name            string
	Ref             time.Time
	Offset          int
	FormattedOffset string
	Location        *time.Location
	DisplayLabel    string
}

func AsTimezone

func AsTimezone(name string, ref time.Time) (tz *Timezone, err error)

func List

func List(ref time.Time) ([]Timezone, error)

List returns a list of embedded timezones.

Jump to

Keyboard shortcuts

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