timezone

package module
v0.0.0-...-3f9de9d Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IANANameForTime

func IANANameForTime(t time.Time) (string, error)

NameForTime returns an IANA name that matches the timezone information on the given time, for example Asia/Shanghai. If there are multiple IANA names that match the timezone on the given time, this function makes no guarantees about which one is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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