LocalizedNaiveDateTime
struct · ferroui-protranslate-core · v0.5.0
struct LocalizedNaiveDateTime
A wall-clock date/time with no inferred machine time zone. new preserves an
unspecified value; utc explicitly identifies the value as UTC.
Round-trip O and custom K retain that distinction. z and universal U
require an explicit UTC or offset value instead of assuming a host time zone.
Members
new
fn new(value: PrimitiveDateTime) -> Self
utc
fn utc(value: PrimitiveDateTime) -> Self
value
fn value(self: Self) -> PrimitiveDateTime
is_utc
fn is_utc(self: Self) -> bool
format
fn format(self: &Self, format: &str, culture: &Culture) -> Result<String, TranslationError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherDebugCloneCopyStructuralPartialEqPartialEqEqLocalizedFormatFrom<PlainDateTime>From<LocalizedNaiveDateTime>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.