Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mr-destructive/timezone-api
An API for fetching and converting timezones across the world
https://github.com/mr-destructive/timezone-api
api django-rest-framework swagger-ui
Last synced: 10 days ago
JSON representation
An API for fetching and converting timezones across the world
- Host: GitHub
- URL: https://github.com/mr-destructive/timezone-api
- Owner: Mr-Destructive
- Created: 2022-01-15T12:23:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-04T18:21:35.000Z (over 2 years ago)
- Last Synced: 2024-12-02T04:13:21.770Z (2 months ago)
- Topics: api, django-rest-framework, swagger-ui
- Language: Python
- Homepage: https://timezone-api.herokuapp.com/
- Size: 2.18 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Timezone API
## An FOSS API for fetching and converting timezones across the world.
## Techstack
- Django
- Django-Rest-Framework
- DRF-YASG
- pytz
- Heroku## Endpoints
- `/api/{timezone-code}/` -> get the current time in the given time zone(eg. IST, EST, BST).
- `/api/convert/{t1}/{t2}/` -> convert the current time in timezone t1 into other timezone t2.
## List of Timezone Code:
```
_________________________________
| Timezone Code | UTC Offset |
|_______________|_______________|
| | |
| LINT | +14 UTC |
| CHADT | +13:45 UTC |
| NZDT | +13 UTC |
| ANAT | +12 UTC |
| AEDT | +11 UTC |
| ACDT | +10:30 UTC |
| AEST | +10 UTC |
| ACST | +9:30 UTC |
| JST | +9 UTC |
| ACWST | +:45 UTC |
| CST | +8 UTC |
| WIB | +7 UTC |
| MMT | +6:30 UTC |
| BST | +6 UTC |
| NPT | +5:45 UTC |
| IST | +5:30 UTC |
| UZT | +5 UTC |
| AFT | +4:30 UTC |
| GST | +4 UTC |
| IRST | +3:30 UTC |
| MSK | +3 UTC |
| EET | +2 UTC |
| CET | +1 UTC |
| UTC | +0 UTC |
| CVT | -1 UTC |
| WGST | -2 UTC |
| ART | -3 UTC |
| NST | -3:30 UTC |
| VET | -4 UTC |
| EST | -5 UTC |
| CT | -6 UTC |
| MST | -7 UTC |
| PST | -8 UTC |
| AKST | -9 UTC |
| MART | -9:30 UTC |
| HST | -10 UTC |
| NUT | -11 UTC |
| AOE | -12 UTC |
|_______________|_______________|
```