-
-
Notifications
You must be signed in to change notification settings - Fork 290
Closed
Labels
A-coreArea: anything not otherwise coveredArea: anything not otherwise coveredC-feature-requestCategory: a new feature (not already implemented)Category: a new feature (not already implemented)
Description
Hi,
I wanted to calculate the duration until the next time that a certain time of day, let's say 12:34 will take place.
I achieved this using the following code:
(Time::MIDNIGHT + (time - now.time())) - Time::MIDNIGHT
where now
is the current OffsetDateTime
.
However, this could be achieved instead by simply using the existing adjusting_sub
, but sadly this method is not public and I wonder why.
Would it be possible to expose adjusting_sub
?
Thank you!
Metadata
Metadata
Assignees
Labels
A-coreArea: anything not otherwise coveredArea: anything not otherwise coveredC-feature-requestCategory: a new feature (not already implemented)Category: a new feature (not already implemented)