pub struct GregorianZonedDateTimeFormatter(pub FixedCalendarDateTimeFormatter<Gregorian, YMDTV>);
Expand description
An object capable of formatting a date time with time zone to a string.
Tuple Fields§
§0: FixedCalendarDateTimeFormatter<Gregorian, YMDTV>
Implementations§
source§impl GregorianZonedDateTimeFormatter
impl GregorianZonedDateTimeFormatter
sourcepub fn create_with_length(
provider: &DataProvider,
locale: &Locale,
length: DateTimeLength,
) -> Result<Box<GregorianZonedDateTimeFormatter>, PatternLoadError>
pub fn create_with_length( provider: &DataProvider, locale: &Locale, length: DateTimeLength, ) -> Result<Box<GregorianZonedDateTimeFormatter>, PatternLoadError>
Creates a new GregorianZonedDateTimeFormatter
from locale data.
This function has date_length
and time_length
arguments and uses default options
for the time zone.
sourcepub fn format_iso_datetime_with_custom_time_zone(
&self,
datetime: &IsoDateTime,
time_zone: &TimeZoneInfo,
write: &mut DiplomatWrite,
) -> Result<(), DateTimeFormatError>
pub fn format_iso_datetime_with_custom_time_zone( &self, datetime: &IsoDateTime, time_zone: &TimeZoneInfo, write: &mut DiplomatWrite, ) -> Result<(), DateTimeFormatError>
Formats a IsoDateTime
and TimeZoneInfo
to a string.
Auto Trait Implementations§
impl Freeze for GregorianZonedDateTimeFormatter
impl RefUnwindSafe for GregorianZonedDateTimeFormatter
impl Send for GregorianZonedDateTimeFormatter
impl Sync for GregorianZonedDateTimeFormatter
impl Unpin for GregorianZonedDateTimeFormatter
impl UnwindSafe for GregorianZonedDateTimeFormatter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more