Date-fns: Support eachYear eachMonth eachWeek eachHour eachMinute

Created on 15 Aug 2017  Â·  3Comments  Â·  Source: date-fns/date-fns

Hi, team.
eachDay is a very convenient function under some situation. but it's not comprehensive, i think eachYear,eachMonth,eachWeek,eachHour and eachMinute will be very useful too.
Is there any plan for this?
Thanks.

✋ Help wanted 🎉 Feature

Most helpful comment

At the _moment_ the date-fns team has no throughput for that, but PR(s) is welcome!

All 3 comments

@BiteBit could you write a more complete proposal with example inputs and outputs?

At the _moment_ the date-fns team has no throughput for that, but PR(s) is welcome!

Any changes for v2?
I found an implementation in date-fns codebase, but apparently it isn't available anymore in v.2:
https://github.com/date-fns/date-fns/blob/17ba85a89843f8914f8d33cb85ab0a23c1db5a8d/src/eachMonthOfInterval/index.js

Was this page helpful?
0 / 5 - 0 ratings