0.0.2 • Published 12 years ago

edate v0.0.2

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

Date is fun with modern ECMAScript

This library extends Number and Date with some useful getters and functions:

(1).day.ago
(2).weeks.fromNow
(3).hours.since(Date.yesterday())
(4).minutes.after(Date.now() + (1).day)
(5).weeks.fromNow.atTheEndOfDay
(7).weeks.ago.atTheBeginningOfYear

Read the code for more docs and have fun! Bonus points for patches :)

TODO

  • Date.format() ???

Testing

npm install -g jasmine-node
make spec

It extends Date?

Well it is. Something to think about:

Contributors:

  • Antono Vasiljev
  • Vasiliy Ermolovich
  • AJ ONeal
  • and other...