localtz

package
Version: v0.0.0-...-f1791b3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 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.

Source Files

Jump to

Keyboard shortcuts

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