localtz

package
v0.0.0-...-290cb81 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Overview

Package localtz watches for changes to the local machine's time zone.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *time.Location

Get returns the machine's current time zone.

func Next

func Next() <-chan struct{}

Next returns a channel that signals when the machine's time zone changes.

func SetForTest

func SetForTest(newZone *time.Location)

SetForTest allows simulating a timezone change in tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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