Skip to content

jojoee/date-timezones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

date-timezones

Travis Codecov Version - npm Version - Bower License - npm semantic-release

Return native "Date" object with specific timezone (e.g. new DateTimezones('Australia/Sydney'))

Installation

// npm
npm install date-timezones

// Bower
bower install date-timezones
// then see this example file
// https://github.com/jojoee/date-timezones/blob/master/index.html

Example usage

// Tue Feb 28 2017 00:20:47 GMT+0700 (SE Asia Standard Time)
var local = DateTimezones();

// Tue Feb 28 2017 00:20:47 GMT+0700 (SE Asia Standard Time)
var bangkok = DateTimezones('Asia/Bangkok');

// Tue Feb 28 2017 01:20:47 GMT+0700 (SE Asia Standard Time)
var shanghai = DateTimezones('Asia/Shanghai');

// Mon Feb 27 2017 17:20:47 GMT+0700 (SE Asia Standard Time)
var london = DateTimezones('Europe/London');

Future update

  • Test
  • Code coverage
  • Demo page
  • Screenshot
  • Commit by npm run commit only
  • Increase code coverage percentage
  • ESLint
  • Automated scripts: auto update dependencies, cause it need to update DSL (Daylight Saving Time)

Contribute for owner

$ npm install -g semantic-release-cli
$ semantic-release-cli setup

Using above command to setup "semantic-release"

Reference

About

📅 Return native "Date" object with specific timezone (e.g. new DateTimezones('Australia/Sydney'))

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published