https://github.com/guiromao/time-api
Timezones API in Go and gorilla-mux
https://github.com/guiromao/time-api
Last synced: 2 days ago
JSON representation
Timezones API in Go and gorilla-mux
- Host: GitHub
- URL: https://github.com/guiromao/time-api
- Owner: guiromao
- Created: 2021-09-05T14:23:43.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T14:24:24.000Z (about 4 years ago)
- Last Synced: 2025-02-26T19:16:20.946Z (8 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
Usage:
Run the code locally: go run main.go
http://localhost:9090/api/time --> for UTC time
http://localhost:9090/api/time?tz=America/New_York for the time in New York, or whatever time you want
http://localhost:9090/api/time?tz=America/New_York,Europe/Athens,Indian/Comoro for multiple timezones (sepparated by commas)Complete list of string timezones: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones