Skip to content

Go package to predictably load time.Locations regardless of operating system.

License

Notifications You must be signed in to change notification settings

leighmcculloch/go-tz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tz

Tests Go Report Card Go docs

Deprecated: Use time/tzdata available in Go 1.15. time/tzdata does not work exactly the same as it defaults to local tzdata when available where as this package always uses embedded data. This package will be maintained until Go 1.16 is released.

Predictably load time.Locations regardless of operating system.

import "4d63.com/tz"
loc, err := tz.LoadLocation("Australia/Sydney")

Docs and examples at https://godoc.org/4d63.com/tz.

This package exists because of golang/go#21881.

About

Go package to predictably load time.Locations regardless of operating system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages