[−][src]Enum chrono::format::Fixed
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
Abbreviated month names.
Prints a three-letter-long name in the title case, reads the same name in any case.
Full month names.
Prints a full name in the title case, reads either a short or full name in any case.
Abbreviated day of the week names.
Prints a three-letter-long name in the title case, reads the same name in any case.
Full day of the week names.
Prints a full name in the title case, reads either a short or full name in any case.
AM/PM.
Prints in lower case, reads in any case.
AM/PM.
Prints in upper case, reads in any case.
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 Numeric::Nanosecond
.
Same as Nanosecond
but the accuracy is fixed to 3.
Same as Nanosecond
but the accuracy is fixed to 6.
Same as Nanosecond
but the accuracy is fixed to 9.
Timezone name.
It does not support parsing, its use in the parser is an immediate failure.
Offset from the local time to UTC (+09:00
or -04:00
or +00:00
).
In the parser, the colon can be omitted and/or surrounded with any amount of whitespace.
The offset is limited from -24:00
to +24:00
,
which is the same as FixedOffset
's range.
Offset from the local time to UTC (+09:00
or -04:00
or Z
).
In the parser, the colon can be omitted and/or surrounded with any amount of whitespace,
and Z
can be either in upper case or in lower case.
The offset is limited from -24:00
to +24:00
,
which is the same as FixedOffset
's range.
Same as TimezoneOffsetColon
but prints no colon.
Parsing allows an optional colon.
Same as TimezoneOffsetColonZ
but prints no colon.
Parsing allows an optional colon.
RFC 2822 date and time syntax. Commonly used for email and MIME date and time.
RFC 3339 & ISO 8601 date and time syntax.
Internal(InternalFixed)
Internal uses only.
This item exists so that one can add additional internal-only formatting without breaking major compatibility (as enum variants cannot be selectively private).
Trait Implementations
impl Clone for Fixed
[src]
impl Debug for Fixed
[src]
impl Eq for Fixed
[src]
impl PartialEq<Fixed> for Fixed
[src]
impl StructuralEq for Fixed
[src]
impl StructuralPartialEq for Fixed
[src]
Auto Trait Implementations
impl RefUnwindSafe for Fixed
impl Send for Fixed
impl Sync for Fixed
impl Unpin for Fixed
impl UnwindSafe for Fixed
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,