Index | Files

package localtz

import ""

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


Package Files


func Get Uses

func Get() *time.Location

Get returns the machine's current time zone.

func Next Uses

func Next() <-chan struct{}

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

func SetForTest Uses

func SetForTest(newZone *time.Location)

SetForTest allows simulating a timezone change in tests.

Package localtz imports 9 packages (graph) and is imported by 3 packages. Updated 2018-12-16. Refresh now. Tools for package owners.