Module mysql::chrono::prelude [] [src]

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

Structs

Date

ISO 8601 calendar date with time zone.

DateTime

ISO 8601 combined date and time with time zone.

FixedOffset

The time zone with fixed offset, from UTC-23:59:59 to UTC+23:59:59.

Local

The local timescale. This is implemented via the standard time crate.

NaiveDate

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.

NaiveDateTime

ISO 8601 combined date and time without timezone.

NaiveTime

ISO 8601 time without timezone. Allows for the nanosecond precision and optional leap second representation.

Utc

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

Weekday

The day of week.

Traits

Datelike

The common set of methods for date component.

Offset

The offset from the local time to UTC.

TimeZone

The time zone.

Timelike

The common set of methods for time component.