datetimezone
v1.0.1
Published
Pass in a timezone offset in minutes and this function will return Date objects based on that Timezone
Downloads
2
Readme
#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() );