cullophid / date-fp

Functional programming date manipulation library
121 stars 17 forks source link

Add or subtract 'weeks' as a timespan? #58

Closed svnv closed 7 years ago

svnv commented 7 years ago

Eg. D.add('weeks', 1, new Date()) and D.sub('weeks', 1, new Date()).

svnv commented 7 years ago

Hmm, maybe it is better to add this for all the methods that takse steps as a string?

As in, also adding "weeks" to

svnv commented 7 years ago

Looking at the code in the repo D.diff() already supports "weeks", and D.get() supports "week".

In my current pull i request https://githhub.com/cullophid/date-fp/pull/59 i have added support for "week" setter in D.set().