[−][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
ShortMonthNameAbbreviated month names.
Prints a three-letter-long name in the title case, reads the same name in any case.
LongMonthNameFull month names.
Prints a full name in the title case, reads either a short or full name in any case.
ShortWeekdayNameAbbreviated day of the week names.
Prints a three-letter-long name in the title case, reads the same name in any case.
LongWeekdayNameFull day of the week names.
Prints a full name in the title case, reads either a short or full name in any case.
LowerAmPmAM/PM.
Prints in lower case, reads in any case.
UpperAmPmAM/PM.
Prints in upper case, reads in any case.
NanosecondAn 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.
Nanosecond3Same to Nanosecond but the accuracy is fixed to 3.
Nanosecond6Same to Nanosecond but the accuracy is fixed to 6.
Nanosecond9Same to Nanosecond but the accuracy is fixed to 9.
TimezoneNameTimezone name.
It does not support parsing, its use in the parser is an immediate failure.
TimezoneOffsetColonOffset 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 whitespaces.
The offset is limited from -24:00 to +24:00,
which is same to FixedOffset's range.
TimezoneOffsetColonZOffset 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 whitespaces,
and Z can be either in upper case or in lower case.
The offset is limited from -24:00 to +24:00,
which is same to FixedOffset's range.
TimezoneOffsetSame to TimezoneOffsetColon but prints no colon.
Parsing allows an optional colon.
TimezoneOffsetZSame to TimezoneOffsetColonZ but prints no colon.
Parsing allows an optional colon.
RFC2822RFC 2822 date and time syntax. Commonly used for email and MIME date and time.
RFC3339RFC 3339 & ISO 8601 date and time syntax.
Trait Implementations
impl Clone for Fixed[src]
impl Clone for Fixedfn clone(&self) -> Fixed[src]
fn clone(&self) -> FixedReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Fixed[src]
impl Copy for Fixedimpl Eq for Fixed[src]
impl Eq for Fixedimpl PartialEq<Fixed> for Fixed[src]
impl PartialEq<Fixed> for Fixedfn eq(&self, other: &Fixed) -> bool[src]
fn eq(&self, other: &Fixed) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Debug for Fixed[src]
impl Debug for FixedAuto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more