barista.run: barista.run/base/watchers/localtz Index | Files

package localtz

import "barista.run/base/watchers/localtz"

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

Index

Package Files

localtz.go

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.