Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

prelude

A convenience module appropriate for glob imports (use chrono::prelude::*;).

Fully qualified path: chrono::prelude


Re-exports:

DateISO 8601 calendar date without timezone. Allows for every proleptic Gregorian date from Jan 1, 262145 BCE to Dec 31, 262143 CE. Also supports the conversion from ISO 8601 ordinal and week date….
DateTimeISO 8601 combined date and time without timezone….
DaysA duration in calendar days. This is useful because when using TimeDelta it is possible that adding TimeDelta::days(1)
IsoWeekISO 8601 week. This type, combined with Weekday , constitutes the ISO 8601 week date . One can retrieve this type from the existing Datelike types via the Datelike::iso_week method.
MonthsA duration in calendar months
Time
TimeDeltaTime duration with nanosecond precision. This also allows for negative durations; see individual methods for details. A TimeDelta is represented internally as a complement of seconds and…
WeekA week represented by a NaiveDate and a Weekday which is the first day of the week.

MonthThe month of the year. This enum is just a convenience implementation. The month in dates created by DateLike objects does not return this enum….
WeekdayThe day of week. The order of the days of week depends on the context. (This is why this type does _ not _ implement PartialOrd or Ord traits.) One should prefer *_from_monday or…

DateTrait
DateTimeTrait
DaysTrait
IsoWeekTrait
MonthTrait
MonthsTrait
TimeTrait
TimeDeltaTrait
DatelikeThe common set of methods for date component. Methods such as year , month , day and weekday can be used to get basic information about the date. The with_* methods can change the date….
TimelikeThe common set of methods for time component.
WeekTrait
WeekdayTrait