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

Add From impls for DateTime #67

Closed
wants to merge 1 commit into from
Closed

Conversation

dbrgn
Copy link
Contributor

@dbrgn dbrgn commented Mar 29, 2016

This is a first attempt at implementing the std::convert::From trait.

First of all, this only overwrites the timezone, but does not actually convert the datetime, right? If that's the case, I'm not sure if that's semantically the right thing to do in a From implementation. Are there already functions for real conversion?

Also, I did not manage to implement From generically for all timezones. I'm not sure that's possible.

@quodlibetor
Copy link
Contributor

This functionality was merged in pr #271

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

Successfully merging this pull request may close these issues.

2 participants