Date and Time

cat-date-and-time

Manage the complexity of dealing with the fourth dimension.

There are two key libraries:

  • time: a smaller, simpler library. Preferrable if covers your needs, but it's quite limited in what it provides.

  • chrono: the most comprehensive and full-featured datetime library, but more complex because of it.

Unfortunately there is no clear answer as to which is best between time and chrono. Evaluate for yourself between these two, but both are trusted and well-maintained.

Duration and Calculation

Parsing and Displaying

Using the time crate

RecipeCratesCategories
Use the time cratetimecat-date-and-time cat-value-formatting cat-parser-implementations cat-no-std