Skip to content
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

Binary assignment and other features in newer version of the time crate #479

Closed
TianyiShi2001 opened this issue Sep 23, 2020 · 2 comments
Closed

Comments

@TianyiShi2001
Copy link

The the lateset release of chrono (v0.4.15) does not support binary assignment operators such as AddAssign and SubAssign as well as other features due to its dependence on an old version of the time crate:

For example, this won't work:

let mut instant = Local::now();
let mut duration = Duration::seconds(1);
instant += duration;
duration += duration;

Does chrono plan to migrate to a newer version of time?

@benesch
Copy link
Contributor

benesch commented Sep 23, 2020

Not the maintainer, but I believe the plan is to move off the time crate entirely. See #400.

@quodlibetor
Copy link
Contributor

benesch is correct, the plan is to move off the time crate. AddAssign/SubAssign will be implemented for the chrono-local versions of those structs, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants