Skip to main content

civil_from_unix

Function civil_from_unix 

Source
pub const fn civil_from_unix(seconds: u64) -> (u64, u32, u32, u8, u8, u8, u8)
Expand description

Converts UNIX seconds to a civil date-time.

Returns (year, month, day, hour, minute, second, weekday) where the weekday is 0 = Sunday .. 6 = Saturday, matching the host RTC driver; the guest RTC model adds one for its own 1 = Sunday register convention.