edate

0.0.2 • Public • Published

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 :)

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...

Dependents (0)

Package Sidebar

Install

npm i edate

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • antono