logo
Expand description

⌚ Time API

This API provides functionality to query and format (for display) the real world time.

Simple example:

require_time_api!();

let now = time().now();
log::info!("Now: {}", time().format_instant_for_display(now, TimeFormat::ISODateTime));

Structs

An instant in time, internally represented as nanoseconds since the UNIX epoch (1970-01-01).

The time api gives you access to real world time functionality.

Enums

All of these time formats are local, except ISODateTimeUTC.