-
Notifications
You must be signed in to change notification settings - Fork 17
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
Greater precision formats #5
Comments
Please review the proposed API for translation and additional features: https://github.com/vi/timeago/blob/9979380380f876bb0c22cbd68b60516e16743a5f/src/lib.rs Is it going to the right direction? |
@vi Forgive me if I'm blind, but I can't really tell what is different from the previous API? |
Instead of Previous API is this: https://docs.rs/timeago/0.0.2/timeago/ |
Ah so the basic premise is that you can build your own Style. Got it. Is it possible to easily specify more granular units? An example of how to do so would be awesome. For example: Just now |
Do you mean "describe it down to seconds, but don't go to milliseconds", so it can be Currently it is aimed at the second one, but I'm not sure which one is better/needed (or both?). (My own use case which I had in mind while developing |
Currently the format only displays the highest unit of time and chops off the rest. It would be great for it to include hours, minutes, seconds etc if you want and be customizable.
The text was updated successfully, but these errors were encountered: