-
Notifications
You must be signed in to change notification settings - Fork 508
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
Resetting time to 00:00:00.0 #928
Comments
@esheppa , Eric, sorry, I probably miss something important here. Is there a way to replace the time only portion in I have an immutable var with
And I need to do it often enough in my code to find the current multi-step approach of resetting hr, min, sec, ns too verbose. |
* added the trail itself * implemented the trait for DateTime, NaiveDateTime and NaiveTime * implemented tests for all trait implementations
@esheppa , Eric, I submitted a draft PR for this feature under #930 . Can you or any other maintainers take a look before I spend any more time polishing it? Unrelated: the pipeline has a step with |
Looks like the simplest way of resetting the time for
The maintainers looked into my PR #930 to simplify this, but the gains were marginal and we would still need to use |
It takes too many lines to do a simple and commonly used (at least in my case) operation:
Is there a simpler way of achieving the same?
if not, would you consider a PR to do a reset like that in a single step? E.g.
The text was updated successfully, but these errors were encountered: