tzlocal

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Unlicense Imports: 5 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvTZ

func EnvTZ() (string, bool)

EnvTZ returns the timezone selected by TZ if it is set. Go treats invalid values as UTC.

func LocalTZ

func LocalTZ() (string, error)

LocalTZ gets the timezone name by resolving the /etc/localtime symlink.

func RuntimeTZ

func RuntimeTZ() (string, error)

RuntimeTZ get the full timezone name of the local machine

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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