-
Notifications
You must be signed in to change notification settings - Fork 515
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
Consider adding a "Default" implementation to Duration #717
Comments
Right now the implementation of the |
Ah, I had forgotten about Maybe chrono 0.5 could add a |
I'd be happy to add that once we straighten out the compatibility situation. |
What's the current state of this issue? As far as I understood from @djc, the reason for not implementing Default was because As of |
On the main branch (which will eventually become 0.5) we can add a You seem to be confusing the |
You're right, I mistook But if this time I checked right, as of |
Yes, but the |
@delightfulagony - if this #860 or a linked PR gets merged, then you will be able to use |
Oh ok, so I misunderstood you, alright, thank you
I suppose it would, in any case I changed to using the time crate that also works for my needs, and since you folks are working on You're both the best! 🎉 👍 |
Added in #1327. |
Would you consider having
chrono::Duration
implementDefault
, which would produce a zero-durationDuration
?This would be consistent with
std::time::Duration
The text was updated successfully, but these errors were encountered: