Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    timezonespublic

    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

    Keywords

    none

    install

    npm i timezones

    Downloadslast 7 days

    4

    version

    0.0.1

    license

    none

    last publish

    collaborators

    • avatar