codeql-action/node_modules/time-zone
github-actions[bot] 0da815296a Update checked-in dependencies 2022-02-24 17:03:29 +00:00
..
index.js replace jest with ava 2020-05-13 11:13:27 +01:00
license replace jest with ava 2020-05-13 11:13:27 +01:00
package.json Update checked-in dependencies 2022-02-24 17:03:29 +00:00
readme.md replace jest with ava 2020-05-13 11:13:27 +01:00

readme.md

time-zone Build Status

Pretty time zone: +2 or -9:30

Install

$ npm install --save 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.

License

MIT © Sindre Sorhus