Skip to content

bmpvieira/isuckattimezones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isuckattimezones

Quickly figure out time in other timezones.

NPM version Dependency Status

Install

Install isuckattimezones with npm:

$ npm install isuckattimezones

To use it as a command line tool, you can install it globally by adding -g .

Usage

If you're using isuckattimezones with Node.js, you can require the module:

var isatz = require('isuckattimezones')

You can pass any number of strings representing places. It will figure it out with Google Maps.

isatz(['oakland', 'new york'], console.log)
//  { local: 'D5T02:24 GMT',
//    oakland: 'D4T18:24 PDT',
//   'new york': 'D4T21:24 EDT' }

If the first string represents time, it will set local to that time and adjust the other timezones accordingly.

isatz(['12:00', 'oakland'], console.log)
//  { local: 'D5T12:00 GMT',
//    oakland: 'D5T04:00 PDT' }

Command line examples

$ isatz london
$ isatz 8:30 lisbon paris

Contributing

To contribute, clone this repo locally and commit your code on a separate branch.

Contacts

Bruno Vieira <mail@bmpvieira.com> @bmpvieira

License

isuckattimezones is licensed under the MIT license.
Check ChooseALicense.com for details.

About

Quickly figure out time in other timezones.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published