Tease
$ npm install tease
This library provides basic time zone information with UTC and DST offsets and canonical links from the IANA Time Zone Database. It can be installed in whichever way you prefer, but I recommend NPM.
Documentation
var tease = ; teaseall;// {// "Europe/London": {"utc":"+00:00", "dst":"+01:00", "link":null},// "US/Eastern": {"utc":"-05:00", "dst":"-04:00", "link":"America/New_York"},// "UTC": {"utc":"+00:00", "dst":"+00:00", "link":null},// ...// } teaseids;// [// "Europe/London",// "US/Eastern",// "UTC",// ...// ] tease;// {"utc":"-05:00", "dst":"-04:00", "link":"America/New_York"} tease === tease;// true tease;// "-05:00" tease;// "-04:00" tease;// true tease;// false
Contributing
I accept contributions to the source via Pull Request, but passing unit tests must be included before it will be considered for merge.
$ curl -O https://raw.githubusercontent.com/adlawson/vagrantfiles/master/nodejs/Vagrantfile$ vagrant up$ vagrant ssh$ cd /srv $ npm test
License
The content of this library is released under the MIT License by
Andrew Lawson.
You can find a copy of this license in
LICENSE
or at http://www.opensource.org/licenses/mit.