Version 2 Feature and Changes discussion is being held at #37
- Micro-Framework adding missing functionality to the Date object
- Useable as a polyfill in the browser
- Useable as a polyfill in Node.js
- Works in CouchDB
<script type="text/javascript" src="date-utils.min.js"></script>
$ npm install date-utils
require('date-utils');
Note: This did not work in the REPL
before Node.js 0.6
due to how Node.js
handles context in the REPL
.
require('date-utils').language("es")
Supported languages:
- Spanish - "es"
- French - "fr"
- Portuguese Brazilian - "pt-BR"
Documentation (nearing completion) can be found at https://jerrysievert.github.io/date-utils
Make sure you have gulp installed (npm install gulp -g). After that hit npm install
to get the dependencies. Finally, hit gulp
. This will build the library initially. If you make changes to the library, it will compile the minified version automatically.
$ npm test
$ gulp