Socket
Socket
Sign inDemoInstall

timezone-compare

Package Overview
Dependencies
55
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    timezone-compare

A cli tool to get a list of times across 2 different timezones for easy checking


Version published
Weekly downloads
15
increased by275%
Maintainers
1
Install size
20.4 MB
Created
Weekly downloads
 

Readme

Source

$ 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

Keywords

FAQs

Last updated on 10 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc