You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have any objection in principle. But in practice you would need to think through what wrapping at midnight means. e.g. 23:59:58, 23:59:59, 00:00:00, 00:00:01. Does it violate any expected contracts of upto or step for the next step to be less than the previous?
I don't think it would be problem, but I haven't thought deeply about it either.
Proposal for new instance methods
upto
and/orstep
These can be used as following cases
c.f.
https://rubydoc.info/stdlib/date/Date#step-instance_method
https://rubydoc.info/stdlib/date/Date#upto-instance_method
before working on implementation, I would like to hear a comment about this methods. Thank you!
The text was updated successfully, but these errors were encountered: