The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
rtc.h File Reference

the CMOS real-time clock: the wall-clock time at boot. More...

#include "common/stdint.h"

Go to the source code of this file.

Functions

bool rtc_read_unix_time (uint32_t *seconds_out)
 read the date and time from the CMOS clock (taken as UTC).

Detailed Description

the CMOS real-time clock: the wall-clock time at boot.

Function Documentation

◆ rtc_read_unix_time()

bool rtc_read_unix_time ( uint32_t * seconds_out)

read the date and time from the CMOS clock (taken as UTC).

Parameters
seconds_outreceives the seconds since 1970-01-01 00:00 UTC.
Returns
false if the clock gives no valid date.