datetimezone

1.0.1 • Public • Published

datetimezone

Pass in an offset in minutes and this module will return a function which you can call to get a Date which is the current Date/Time in that timezone.

Example

var datetimezone = require( 'datetimezone' ),
    gmt = datetimezone( 0 ),
    eastern = datetimezone( 300 );
 
console.log( gmt() );
console.log( eastern() );

Readme

Keywords

Package Sidebar

Install

npm i datetimezone

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mikkoh