timezone

package
v0.0.0-...-38a8844 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources embed.FS

Functions

func GetIanaNameForLinux

func GetIanaNameForLinux() (string, error)

func GetIanaNameForWindows

func GetIanaNameForWindows() (string, error)

func GetIanaNameForWindowsName

func GetIanaNameForWindowsName(windowsName string) (string, error)

Types

type Timezone

type Timezone struct {
	UtcOffset    string `json:"utc_offset"`
	Abbreviation string `json:"abbr"`
	IsDst        bool   `json:"is_dst"`
	IanaName     string `json:"iana_name"`
}

func GetTimezone

func GetTimezone() *Timezone

type WindowsZoneMapping

type WindowsZoneMapping struct {
	WindowsTimezone string
	IANATimezone    string
}

Jump to

Keyboard shortcuts

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