Low-level real time clock functionality. More...
|Get the current date/time. |
|Get the time that the sytem was booted. |
Low-level real time clock functionality.
This file contains functions for interacting with the real time clock in the Dreamcast. Generally, you should prefer interacting with the higher level standard C functions, like time(), rather than these.
Get the time that the sytem was booted.
This function retrieves the RTC value from when KallistiOS was started. As with rtc_unix_secs(), this is a UNIX-style timestamp in local time.
Get the current date/time.
This function retrieves the current RTC value as a standard UNIX timestamp (with an epoch of January 1, 1970 00:00). This is assumed to be in the timezone of the user (as the RTC does not support timezones).