Enum chrono::format::Fixed
[−]
[src]
pub enum Fixed { ShortMonthName, LongMonthName, ShortWeekdayName, LongWeekdayName, LowerAmPm, UpperAmPm, Nanosecond, Nanosecond3, Nanosecond6, Nanosecond9, TimezoneName, TimezoneOffsetColon, TimezoneOffsetColonZ, TimezoneOffset, TimezoneOffsetZ, RFC2822, RFC3339, }
Fixed-format item types.
They have their own rules of formatting and parsing. Otherwise noted, they print in the specified cases but parse case-insensitively.
Variants
ShortMonthName | Abbreviated month names. Prints a three-letter-long name in the title case, reads the same name in any case. | |
LongMonthName | Full month names. Prints a full name in the title case, reads either a short or full name in any case. | |
ShortWeekdayName | Abbreviated day of the week names. Prints a three-letter-long name in the title case, reads the same name in any case. | |
LongWeekdayName | Full day of the week names. Prints a full name in the title case, reads either a short or full name in any case. | |
LowerAmPm | AM/PM. Prints in lower case, reads in any case. | |
UpperAmPm | AM/PM. Prints in upper case, reads in any case. | |
Nanosecond | An optional dot plus one or more digits for left-aligned nanoseconds.
May print nothing, 3, 6 or 9 digits according to the available accuracy.
See also | |
Nanosecond3 | Fixed prescision at Nanosecond3 where 3 is the left aligned accuracy. | |
Nanosecond6 | Fixed prescision at Nanosecond6 where 6 is the left aligned accuracy. | |
Nanosecond9 | Fixed prescision at Nanosecond9 where 9 is the left aligned accuracy. | |
TimezoneName | Timezone name. It does not support parsing, its use in the parser is an immediate failure. | |
TimezoneOffsetColon | Offset from the local time to UTC ( In the parser, the colon can be omitted and/or surrounded with any amount of whitespaces.
The offset is limited from | |
TimezoneOffsetColonZ | Offset from the local time to UTC ( In the parser, the colon can be omitted and/or surrounded with any amount of whitespaces,
and | |
TimezoneOffset | Same to | |
TimezoneOffsetZ | Same to | |
RFC2822 | RFC 2822 date and time syntax. Commonly used for email and MIME date and time. | |
RFC3339 | RFC 3339 & ISO 8601 date and time syntax. |