Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SexyDatesJS

SexyDates is an Javascript extends library on Number object that allows you to create dates (Date objects) in a sexy, like way: (3).days().ago().

Welcome to pull request!

Usage examples

(0).second().ago() // now
(1).second().ago() // a second ago from now

(1).second().since((1).day().ago()) // passed a second from yesterday
(3).second().fromNow() // passed 3 second from now

(1).year().fromNow() // a year ago from now

TODO

  • Sync with realworld calendar.

About

SexyDates is an Javascript extends library on Number object that allows you to create dates (Date objects) in a sexy, like way: (3).days().ago().

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages