https://github.com/leighmcculloch/go-tz
Go package to predictably load time.Locations regardless of operating system.
https://github.com/leighmcculloch/go-tz
Last synced: 2 months ago
JSON representation
Go package to predictably load time.Locations regardless of operating system.
- Host: GitHub
- URL: https://github.com/leighmcculloch/go-tz
- Owner: leighmcculloch
- License: other
- Created: 2018-03-03T06:24:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-13T06:58:51.000Z (almost 5 years ago)
- Last Synced: 2025-04-15T06:14:08.813Z (2 months ago)
- Language: Go
- Homepage: https://4d63.com/tz
- Size: 466 KB
- Stars: 30
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tz
[](https://github.com/leighmcculloch/go-tz/actions)
[](https://goreportcard.com/report/github.com/leighmcculloch/go-tz)
[](https://godoc.org/4d63.com/tz)**Deprecated: Use [time/tzdata](https://golang.org/pkg/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.Location`s 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 https://github.com/golang/go/issues/21881.