FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    0

    0: time::OffsetDateTime
    

    Source

    new

    fn new(value: OffsetDateTime) -> Self
    

    Source

    value

    fn value(self: Self) -> OffsetDateTime
    

    Source

    from_unix_timestamp

    fn from_unix_timestamp(seconds: i64, utc_offset_seconds: i32) -> Result<Self, TranslationError>
    

    Source

    format

    fn format(self: &Self, format: &str, culture: &Culture) -> Result<String, TranslationError>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Debug
    • Clone
    • Copy
    • StructuralPartialEq
    • PartialEq
    • Eq
    • LocalizedFormat
    • From<OffsetDateTime>
    • From<LocalizedDateTime>

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.