Closed svnv closed 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
D.diff()
D.get()
D.set()
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()
.
Eg.
D.add('weeks', 1, new Date())
andD.sub('weeks', 1, new Date())
.