time-zone ![Build Status](https://camo.githubusercontent.com/1269ac463fcf6393acdde36ad1dcaaa7b98c555c12bf044538ecae9f992a313e/68747470733a2f2f7472617669732d63692e6f72672f73696e647265736f726875732f74696d652d7a6f6e652e7376673f6272616e63683d6d6173746572)
Pretty time zone:
+2
or-9:30
Install
$ npm install time-zone
Usage
const timeZone = require('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.