timezone-compare
Advanced tools
Comparing version 1.0.10 to 1.0.11
{ | ||
"name": "timezone-compare", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"bin": { | ||
@@ -5,0 +5,0 @@ "timezone-compare": "./dist/cli.js" |
# `$ timezone-compare` | ||
## Screenshot | ||
:zap: Cli tool to get a list of times across 2 different timezones for easy checking. | ||
![Screenshot](https://raw.githubusercontent.com/bhargav175/timezone-compare/master/assets/screenshot_1.png "Screenshot") | ||
## Screenshot-cli | ||
![Screenshot](https://raw.githubusercontent.com/bhargav175/timezone-compare/master/assets/timezone-compare-cli.gif "Screenshot") | ||
## :cloud: Installation | ||
```bash | ||
npm install -g timezone-compare | ||
## :clipboard: Usage - ES6 | ||
```javascript | ||
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 | ||
## :cloud: Usage - cli | ||
``` bash | ||
$ npm install -g timezone-compare | ||
$ timezone-compare | ||
@@ -18,0 +28,0 @@ ? Enter FROM timezone (America/New_York) IST |
3216528
27
52