Module chrono::naive

source ยท
Expand description

Date and time types unconcerned with timezones.

They are primarily building blocks for other types (e.g. TimeZone), but can be also used for the simpler date and time handling.

Modulesยง

  • date ๐Ÿ”’
    ISO 8601 calendar date without timezone.
  • datetime ๐Ÿ”’
    ISO 8601 date and time without timezone.
  • internals ๐Ÿ”’
    Internal helper types for working with dates.
  • isoweek ๐Ÿ”’
    ISO 8601 week.
  • Serialization/Deserialization of NaiveDateTime in alternate formats
  • time ๐Ÿ”’
    ISO 8601 time without timezone.

Structsยง

  • A duration in calendar days.
  • ISO 8601 week.
  • ISO 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.
  • Iterator over NaiveDate with a step size of one day.
  • ISO 8601 combined date and time without timezone.
  • Iterator over NaiveDate with a step size of one week.
  • ISO 8601 time without timezone. Allows for the nanosecond precision and optional leap second representation.
  • A week represented by a NaiveDate and a Weekday which is the first day of the week.

Constantsยง

  • MAX_DATEDeprecated
    The maximum possible NaiveDate (December 31, 262143 CE).
  • MAX_DATETIMEDeprecated
    The maximum possible NaiveDateTime.
  • MIN_DATEDeprecated
    The minimum possible NaiveDate (January 1, 262145 BCE).
  • MIN_DATETIMEDeprecated
    The minimum possible NaiveDateTime.