LocalizedDateTime
struct · ferroui-protranslate-core · v0.5.0
struct LocalizedDateTime
A Gregorian instant with an explicit UTC offset, suitable for FormatArgument.
O uses seven fractional digits, as the source composite formatter does.
Custom f/F tokens support up to nine digits for Rust's nanosecond precision.
Members
0
0: time::OffsetDateTime
new
fn new(value: OffsetDateTime) -> Self
value
fn value(self: Self) -> OffsetDateTime
from_unix_timestamp
fn from_unix_timestamp(seconds: i64, utc_offset_seconds: i32) -> Result<Self, TranslationError>
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<OffsetDateTime>From<LocalizedDateTime>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.