date-timezones
v1.0.2
Published
Return native "Date" object with specific timezone (e.g. new DateTimezones('Australia/Sydney'))
Downloads
128
Readme
date-timezones
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
- [x] Test
- [x] Code coverage
- [ ] Demo page
- [ ] Screenshot
- [x] Commit by
npm run commit
only - [ ] Increase code coverage percentage
- [x] ESLint
Contribute for owner
$ npm install -g semantic-release-cli
$ semantic-release-cli setup
Using above command to setup "semantic-release"