1.0.13 • Published 7 years ago

timezone-compare v1.0.13

Weekly downloads
20
License
MIT
Repository
github
Last release
7 years ago

$ timezone-compare

Build Status

:zap: Cli tool to get a list of times across 2 different timezones for easy checking.

Screenshot-cli

Screenshot

:clipboard: Usage - ES6

import TimezoneCompare from 'timezone-compare';
const tz = new TimezoneCompare('IST', 'GMT');
const {times} = tz.getTimesAsStrings();
// [[IST times as strings][GMT times as strings]]

//const {times} = tz.getTimesAsMoments(); //If you need a 2d array of moments
// [[IST times as moments][GMT times as moments]]

:cloud: Usage - cli

$ npm install -g timezone-compare
$ timezone-compare
? Enter FROM timezone (America/New_York) IST
? Enter TO timezone (Europe/London) GMT

Available timezones

List of available timezones are here.

Note : Timezones are fetched from moment-timezone

Moment Timezone -- getting a list timezones

Other arbitrary timezones can be added to src/informalTimezones.js if needed.

:+1: Like it?

Support timezone-compare by giving feedback or just by 🌟 starring the project!

:scroll: License

MIT © Bhargav Ponnapalli

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago