-
Notifications
You must be signed in to change notification settings - Fork 547
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
From/Into implemenation for DateTime<FixedOffset/Utc>
conversion?
#831
Comments
Thanks for raising this @kornelski - it is good timing as there has been some discussion and proposals surrounding this recently. Other discussion can be found in #169 and #624. There is an ongoing PR to help this somewhat in #829. There is also some discussion around simplification/changes to the All that said, with current let my_fixed_offset_datetime = my_utc_datetime.with_timezone(&Utc); In terms of However we are keen to improve the documentation / discoverability of this (potentially also via simplification of the trait, and moving some/all of the convenience methods to |
I don't think |
The docs at It'd be ideal to have a table with various types in Chrono, std, and other conventions like unix timestamp and string representations, and code examples for all the pairs of types. |
Thanks @kornelski - the table is an excellent idea.
Agreed on this, however, the problem is:
Currently when doing an operation with |
I don't understand this issue. |
I frequently struggle to find the right methods to convert between various types in Chrono.
Would it be possible to implement
From
/Into
for conversion between types likeDateTime<FixedOffset>
andDateTime<Utc>
?The text was updated successfully, but these errors were encountered: