Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagodelgado111/friendly-timezones
Timezones in a .json file organized in a friendly way
https://github.com/thiagodelgado111/friendly-timezones
Last synced: about 2 hours ago
JSON representation
Timezones in a .json file organized in a friendly way
- Host: GitHub
- URL: https://github.com/thiagodelgado111/friendly-timezones
- Owner: thiagodelgado111
- Created: 2016-12-20T18:46:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T15:20:40.000Z (almost 7 years ago)
- Last Synced: 2024-12-21T11:54:06.190Z (5 days ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Friendly timezones
---A friendly list of timezones that gives you:
- a timezone offset,
- a display name
- the timezone name based on the IANA timezones database.### Installing
```shell
npm install --save github:thiagodelgado111/friendly-timezones.git
```### How do I use it?
```
import timezones from 'friendly-timezones`;console.log(timezones);
// {
// zones: [{
// id: 'Asia/Kuala_Lumpur', displayName: '(UTC+08:00) Kuala Lumpur, Singapore', utcOffset: 8
// }, {
// (...)
// }, {
// id: 'Asia/Pyongyang', displayName: '(UTC+08:30) Pyongyang', utcOffset: 8.5
// }]
// }
```It was based on `Slack`'s timezones arrangement, (vahnag/react-timezones)[https://github.com/vahnag/react-timezone] and (dmfilipenko/timezones.json)[https://github.com/dmfilipenko/timezones.json]
### Contributing
Please feel free to file an issue or send your PR :)