{"id":21975266,"url":"https://github.com/yaegashi/wtz.go","last_synced_at":"2025-09-05T21:33:15.117Z","repository":{"id":136843339,"uuid":"260188811","full_name":"yaegashi/wtz.go","owner":"yaegashi","description":"Windows Time Zone Library for Go","archived":false,"fork":false,"pushed_at":"2020-05-30T14:37:13.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T11:02:46.561Z","etag":null,"topics":["golang","timezone","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaegashi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-30T11:06:02.000Z","updated_at":"2023-11-08T22:40:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"58618ea6-d982-4016-9c18-b14a2177bdfd","html_url":"https://github.com/yaegashi/wtz.go","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegashi%2Fwtz.go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegashi%2Fwtz.go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegashi%2Fwtz.go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegashi%2Fwtz.go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegashi","download_url":"https://codeload.github.com/yaegashi/wtz.go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251342700,"owners_count":21574242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","timezone","windows"],"created_at":"2024-11-29T15:50:37.548Z","updated_at":"2025-04-28T15:51:20.395Z","avatar_url":"https://github.com/yaegashi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wtz.go\n\n[![go.dev](https://img.shields.io/badge/go.dev-reference-000000?logo=go)](https://pkg.go.dev/github.com/yaegashi/wtz.go)\n\n## Introduction\n\nwtz.go is a Go library to portablly handle the time zone names used in Windows.\nThey sometimes appear to you outside the Windows environment,\nfor example, when manipulating Office 365 calendar events\nwith [msgraph.go](https://github.com/yaegashi/msgraph.go)\n(see [dateTimeTimeZone resource type](https://docs.microsoft.com/en-us/graph/api/resources/datetimetimezone?view=graph-rest-1.0)).\nwtz.go helps you with translating them to/from [time.Location](https://golang.org/pkg/time/#Location) with IANA time zone names.\n\n## Example\n\nPlayground: https://play.golang.org/p/l9CeGUXNwZP\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/yaegashi/wtz.go\"\n\t\"time\"\n)\n\nfunc main() {\n\tvar n string\n\tvar l *time.Location\n\n\tn = \"Tokyo Standard Time\"\n\tl, _ = wtz.LoadLocation(n)\n\tfmt.Printf(\"%v -\u003e %v\\n\", n, l)\n\n\tl, _ = time.LoadLocation(\"America/Los_Angeles\")\n\tn, _ = wtz.LocationToName(l)\n\tfmt.Printf(\"%v -\u003e %v\\n\", l, n)\n}\n```\n\n## Acknowledgement\n\n[The mapping table](wtz_maps.go) is based on \n[windowsZones.xml](https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml)\nfrom [Unicode CLDR](http://cldr.unicode.org/).\n[The table generator](gen/genmaps.go) is inspired by [genzabbrs.go](https://golang.org/src/time/genzabbrs.go).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegashi%2Fwtz.go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegashi%2Fwtz.go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegashi%2Fwtz.go/lists"}