-
-
Notifications
You must be signed in to change notification settings - Fork 283
Add ISO8601 +-HH:MM to formatting #241
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
Comments
See #236; there are planned improvements to the formatter & parser. Also note that there is actually support for RFC3339/ISO8601 formatting & parsing on master. I will likely create a 0.2.10 release with this functionality soon. Do you need support for formatting & parsing with the colon on its own, or is RFC/ISO support sufficient for your use case? |
I think the ISO support is enough for my use case, thanks for the quick response and really appreciate your time (pun intended :) ) |
Closing this as your use case is already covered on master 🙂 |
@jhpratt So...i need to ask a kinda dumb question...how can i parse ISO8601 with time 0.2.22? 😅 |
@Weasy666 As indicated in documentation, Probably wouldn't be a bad idea to add a doc alias for "ISO8601", which would let it show up in search results. |
Ah...nice! Thanks for the quick reply. |
It's set to stabilize this coming Thursday! I don't like the |
Other people can search the issues and can see the solution here, so no hurry. I guess. 😀 |
There are a large number of format strings supported by time (ie https://docs.rs/time/0.2.9/time/index.html#formatting ).
%z
outputs or parses a UTC offset with "[+-]HHMM". However in ISO8601 it is also valid to have "[+-]HH:MM", and in expected fashion, some other libraries only accept the ":" seperated format. It would be good if time could also output and parse this. Thanks!The text was updated successfully, but these errors were encountered: