Detalhes do pacote

date-timezones

jojoee115MIT1.0.2

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

date, time, timezone, zone

readme (leia-me)

date-timezones

Travis Codecov Download - Github All Releases Download - npm Version - npm Version - Bower License - 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

  • [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"

Reference