Movatterモバイル変換


[0]ホーム

URL:


tz

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:5Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Overview

Package tz includes utilities for cross-platform timezone/location detection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcTimezoneIANA

func TimezoneIANA() (*time.Location,error)

TimezoneIANA attempts to determine the local timezone in IANA format.If the TZ environment variable is set, this is used.Otherwise, /etc/localtime is used to determine the timezone.Reference:https://stackoverflow.com/a/63805394On Windows platforms, instead of reading /etc/localtime, powershellis used instead to get the current time location in IANA format.Reference:https://superuser.com/a/1584968

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp