FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    UtcNowProvider

    type alias · ferroui-base · v0.5.0

    type UtcNowProvider = std::rc::Rc<dyn Fn() -> std::time::SystemTime>
    

    Gives the current instant.

    Since 0.5 the provider returns a SystemTime, where it returned a DateTime: a provider that pins a date returns SystemTime::try_from(date_time) of it.

    View source

    Availability

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