timezones
v0.0.1
Published
## Installation
Downloads
633
Readme
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(a < b);
assert(b.getHours() == a.getHours() + 2);
Notes
For a more robust timezone library (which are also much larger codebases), try:
- https://github.com/mde/timezone-js
- https://github.com/moment/moment
Licence
MIT