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 comparison to chrono to the docs #308

Open
matklad opened this issue Jan 24, 2021 · 2 comments
Open

Add comparison to chrono to the docs #308

matklad opened this issue Jan 24, 2021 · 2 comments
Labels
A-docs Area: documentation E-help-wanted 📣 Community assistance is desired and welcomed.

Comments

@matklad
Copy link

matklad commented Jan 24, 2021

Hey! As someone who is not familiar with the domain, I am having a hard time deciding whether I should use chrono or time-rs. It would help a lot if the docs explained what’s the difference between the two:)

@jhpratt
Copy link
Member

jhpratt commented Jan 24, 2021

This can definitely be done at some point. I am biased, of course, but can try to provide a list of pros and cons of each.

Just off the top of my head (I'm on mobile), chrono has a significantly lower MSRV if that is of concern to you; time guarantees six months' compatibility. Time, however, has macros to generate statically known values in addition to having just about everything be const fn within compiler limitations. Time 0.3 will also have significantly different parsing and formatting (the latter of which is complete).

Like I said, though, I'll try and give a better overview at some point. Timing it up with the upcoming v0.3 release seems reasonable; parsing and saturating arithmetic (maybe, I have conflicting thoughts) are the only major points left before an alpha release.

@jhpratt jhpratt added the A-docs Area: documentation label Jan 24, 2021
@jhpratt jhpratt added this to the v0.3 milestone Jan 25, 2021
@jhpratt jhpratt removed this from the v0.3 milestone Jul 29, 2021
@chandanch
Copy link

Definitely time Chrono is unreasonably complex while time makes the same thing intuitive for mortals

@jhpratt jhpratt added the E-help-wanted 📣 Community assistance is desired and welcomed. label Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation E-help-wanted 📣 Community assistance is desired and welcomed.
Projects
None yet
Development

No branches or pull requests

3 participants