date-timezones

1.0.2 • Public • Published

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

  • Test
  • Code coverage
  • Demo page
  • Screenshot
  • Commit by npm run commit only
  • Increase code coverage percentage
  • ESLint

Contribute for owner

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

Using above command to setup "semantic-release"

Reference

Readme

Keywords

Package Sidebar

Install

npm i date-timezones

Weekly Downloads

90

Version

1.0.2

License

MIT

Last publish

Collaborators

  • jojoee