-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Make Datetime sortable? #13
Comments
The quickest solution would be converting the date to a ISO8601 string using |
Would you accept a PR that converted this datetime object to unix time? I'm trying to avoid pulling in chrono as a dependency @mdecimus |
Ok, I'll add this feature as soon as I have some free time this week. I found a neat algorithm for this: |
@mdecimus I actually found the same thing and implemented it here lol https://git.alexwennerberg.com/crabmail/file/src/utils.rs.html#l6 Haven't really tested it yet though, just tried to copy/paste the c code. It's also not that idiomatic |
Done, v.0.4.5 is out with support for timestamp conversion and sorting by DateTime. |
I'm trying to sort a list of emails by datetime, and it appears the DateTime struct doesn't allow this -- what do you think the best solution is for this?
The text was updated successfully, but these errors were encountered: