timezones

0.0.1 • Public • Published

Timezone

Installation

node.js:

npm install timezones

browser:

component install viatropos/timezone

Example

var timezone = require('timezone');
 
var a = new Date('2013-12-02 PST');
var b = timezone('cst', a);
assert(< b);
assert(b.getHours() == a.getHours() + 2);

Notes

For a more robust timezone library (which are also much larger codebases), try:

Licence

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i timezones

Weekly Downloads

13

Version

0.0.1

License

none

Last publish

Collaborators

  • viatropos