FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(value: PrimitiveDateTime) -> Self
    

    Source

    utc

    fn utc(value: PrimitiveDateTime) -> Self
    

    Source

    value

    fn value(self: Self) -> PrimitiveDateTime
    

    Source

    is_utc

    fn is_utc(self: Self) -> bool
    

    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<PlainDateTime>
    • From<LocalizedNaiveDateTime>

    Availability

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