Skip to main content

current_time

Function current_time 

Source
pub fn current_time() -> Option<(u32, u32)>
Expand description

Returns the current time of the host.

The browser’s clock is read on the web. A host build has no clock the browser way, so it reports that no time is available and the “Now” button stays inert there.

§Returns

  • Option<(u32, u32)> - The hour and the minute of the current time, or None when the host has no browser clock.