|
Retro Rocket Kernel
BASIC-Powered Operating System
|
Data Structures | |
| struct | datetime_t |
| A representation of date and time. More... | |
Typedefs | |
| typedef uint64_t | time_t |
Enumerations | |
| enum | cmos_port_t { CMOS_ADDR = 0x70 , CMOS_DATA = 0x71 } |
| CMOS IO port addresses. More... | |
Functions | |
| const char * | get_datetime_str () |
| Get the current date and time as a string. More... | |
| void | get_datetime (datetime_t *dt) |
| Get the current date and time as a datetime_t. More... | |
| void | init_realtime_clock () |
| Initialise the realtime clock. More... | |
| time_t | time (time_t *t) |
| POSIX time function returning time_t. More... | |
| uint64_t | day_of_year (uint64_t year, uint8_t month, uint8_t day) |
| Calculate the day of year given any particular year, month an day Ported from js: https://stackoverflow.com/a/75032366/3022125. More... | |
| int | get_weekday_from_date (datetime_t *dt) |
| typedef uint64_t time_t |
| enum cmos_port_t |
| uint64_t day_of_year | ( | uint64_t | year, |
| uint8_t | month, | ||
| uint8_t | day | ||
| ) |
Calculate the day of year given any particular year, month an day Ported from js: https://stackoverflow.com/a/75032366/3022125.
| year | year number |
| month | month number, 1-12 |
| day | day number, 1-31 |
| void get_datetime | ( | datetime_t * | dt | ) |
Get the current date and time as a datetime_t.
| dt | date and time to fill |
| const char* get_datetime_str | ( | ) |
Get the current date and time as a string.
| int get_weekday_from_date | ( | datetime_t * | dt | ) |
| void init_realtime_clock | ( | ) |
Initialise the realtime clock.