Nearest Phase Modulator

    time-zone

    2.0.0 • Public • Published

    time-zone

    Pretty time zone: +2 or -9:30

    Install

    $ npm install time-zone
    

    Usage

    import timeZone from 'time-zone';
    
    // Current time zone (in Norway)
    timeZone();
    //=> '+2'
    
    // Time zone in February (in Norway)
    timeZone(new Date(2016, 1, 1));
    //=> '+1'
    
    // Current time zone (in French Polynesia)
    timeZone();
    //=> '-9:30'

    API

    timeZone(date?)

    date

    Type: Date
    Default: new Date()

    Custom date.

    Install

    npm i time-zone

    DownloadsWeekly Downloads

    526,978

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.59 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus