Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range by hour question #284

Open
cAstraea opened this issue Aug 12, 2020 · 0 comments
Open

Range by hour question #284

cAstraea opened this issue Aug 12, 2020 · 0 comments

Comments

@cAstraea
Copy link

I'm trying to create 1 hour ranges and hit this snag where the times minutes might be different
for example trying to do something like
_.concat(Array.from(rangeDay1.by('hour', { excludeStart:false, excludeEnd: false })).map(m => m.set({m:00}).format('HH:mm'))));

because might have start time 15:10 and end time 17:00
I would expect to get -> 15: 00 , 16:00 , 17:00
however only 15:00 and 16:00 are returned

If i replace 15:10 by 15:00 all are returned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant