Open asayamakk opened 3 years ago
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!