Skip to content

Experience-Monks/datetimezone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#timezonedate

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 timezoneDate = require( 'timezonedate' ),
    gmt = timezoneDate( 0 ),
    eastern = timezoneDate( 300 );

console.log( gmt() );
console.log( eastern() );

About

Pass in a timezone offset in minutes and this function will return Date objects based on that Timezone

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published