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

Example / guide for people migrating from time::strftime #131

Closed
golddranks opened this issue Feb 17, 2017 · 2 comments
Closed

Example / guide for people migrating from time::strftime #131

golddranks opened this issue Feb 17, 2017 · 2 comments
Assignees

Comments

@golddranks
Copy link

I am in impression that the time crate is deprecated, and one should use the std::time if that's enough, and chrono for more sophisticated functionality. I've been using all the three in my project, but now I'm trying to strip it down to two. The things my migration is hinging on is how to use the formatting features on chrono. The documentation at https://docs.rs/chrono/*/chrono/format/index.html isn't very helpful, as it doesn't contain any concrete examples or even explanation how the formatting / parsing system is supposed to work.

@lifthrasiir
Copy link
Contributor

I've assumed that the landing page clearly shows how to format things (.format("strftime-like string"))---how did you get to that page at the first place? I guess the search engine directly links to that page, in which case I should put the identical information to that page as well.

@golddranks
Copy link
Author

Ah, indeed. I found it by a direct link, and expected that a module named format would contain all the docs you need to know about formatting.

Even a short description like "Check the guide about how to format times (link) on the front page." would do.

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

No branches or pull requests

2 participants