Crate product_os_async_executor

source ·

Modules§

  • Formatting (and parsing) utilities for date and time.
  • Date and time types unconcerned with timezones.
  • The time zone, which calculates offsets from the local time to UTC.
  • A convenience module appropriate for glob imports (use chrono::prelude::*;).
  • Functionality for rounding or truncating a DateTime by a TimeDelta.

Structs§

  • DateDeprecated
    ISO 8601 calendar date with time zone.
  • ISO 8601 combined date and time with time zone.
  • A duration in calendar days.
  • The time zone with fixed offset, from UTC-23:59:59 to UTC+23:59:59.
  • A #![no_std]-friendly wrapper over the [std::io::IoSliceMut].
  • ISO 8601 week.
  • The local timescale.
  • A duration in calendar months
  • 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.
  • ISO 8601 combined date and time without timezone.
  • 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.
  • Out of range error type used in various converting APIs
  • Represents error when converting TimeDelta to/from a standard library implementation
  • An error from the parse function.
  • An error resulting from reading <Month> value with FromStr.
  • An error resulting from reading Weekday value with FromStr.
  • Time duration with nanosecond precision.
  • The UTC time zone. This is the most efficient time zone when you don’t need the local time. It is also used as an offset (which is also a dummy type).

Enums§

  • Old name of MappedLocalTime. See that type for more documentation.
  • The month of the year.
  • An error from rounding by TimeDelta
  • Specific formatting options for seconds. This may be extended in the future, so exhaustive matching in external code is not recommended.
  • The day of week.

Constants§

  • MAX_DATEDeprecated
    The maximum possible Date.
  • MAX_DATETIMEDeprecated
    The maximum possible DateTime<Utc>.
  • MIN_DATEDeprecated
    The minimum possible Date.
  • MIN_DATETIMEDeprecated
    The minimum possible DateTime<Utc>.

Traits§

  • The common set of methods for date component.
  • Extension trait for rounding or truncating a DateTime by a TimeDelta.
  • The offset from the local time to UTC.
  • Extension trait for subsecond rounding or truncation to a maximum number of digits. Rounding can be used to decrease the error variance when serializing/persisting to lower precision. Truncation is the default behavior in Chrono display formatting. Either can be used to guarantee equality (e.g. for testing) when round-tripping through a lower precision format.
  • The time zone.
  • The common set of methods for time component.

Type Aliases§