Skip to content

MortadaAK/edate.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ECMAScript 5 date extension. ActiveSupport like stuff.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published