timezone-compare
v1.0.13
Published
A cli tool to get a list of times across 2 different timezones for easy checking
Downloads
5
Maintainers
Readme
$ timezone-compare
:zap: Cli tool to get a list of times across 2 different timezones for easy checking.
Screenshot-cli
: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!