timezone-cast

1.0.4 • Public • Published

timezone-cast

This package allows to cast from TZ windows timezone to TZ unix timezone

Example

const casttz = require('timezone-cast');

console.log(casttz.toUnix('BG'));
//Europe/London
console.log(casttz.toUnix('Europe/London'));
//Europe/London
console.log(casttz.toUnix('GMT Standard Time'));
//Europe/London

console.log(casttz.toWindows('BG'));  
//GMT Standard Time
console.log(casttz.toWindows('Europe/London'));
//GMT Standard Time
console.log(casttz.toWindows('GMT Standard Time'));
//GMT Standard Time

Package Sidebar

Install

npm i timezone-cast

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

43.8 kB

Total Files

9

Last publish

Collaborators

  • abomb