timezone

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var TimeZones []ZoneInfo
View Source
var WindowsToIana = map[string]string{}/* 139 elements not displayed */

WindowsToIana maps Windows time zone names to IANA time zone names.

Functions

func ConvertOffsetToIANAName

func ConvertOffsetToIANAName(offset int) (string, error)

ConvertOffsetToIANAName returns a timezone name matching the given offset string (e.g. "+04")

Types

type ZoneInfo

type ZoneInfo struct {
	DisplayText string
	Name        string
	WindowsName string
	Offset      int
}

func GetCurrentTimeZone

func GetCurrentTimeZone() (ZoneInfo, error)

GetCurrentTimeZone returns the current timezone information

Jump to

Keyboard shortcuts

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