timezone-compare

1.0.13 • Public • Published

$ timezone-compare

Build Status

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

Screenshot-cli

Screenshot

📋 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]]
 

☁️ 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.

👍 Like it?

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

📜 License

MIT © Bhargav Ponnapalli

Dependents (0)

Package Sidebar

Install

npm i timezone-compare

Weekly Downloads

11

Version

1.0.13

License

MIT

Last publish

Collaborators

  • imbhargav5