Date and Time

cat-date-and-time

Manage the complexity of dealing with the fourth dimension.

There are two key libraries:

  • chrono: a comprehensive, full-featured, yet complex date and time library,
  • time: a smaller, simpler library with limited functionality.

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