[go: up one dir, main page]

10 minutes from now in 3 hours
at 12:30pm tomorrow night at 5
sunday night next week wednesday
last month in 2 months
friday at 2pm next week saturday morning

Installation

Install with NPM:

  npm install date.js

In the browser (standalone):

API

date(str, [offset])

Create a Date from a str. You may also supply an optional offset to the starting date. offset defaults to the current date and time (ie. new Date).

Tests

To run the tests, you'll need node.js:

  npm install
  make test

License

MIT, go wild.