remove date from core, app_wasm.html

This commit is contained in:
krzosa
2025-01-04 08:38:19 +01:00
parent 1fca44fcfc
commit 6f795b7ea6
14 changed files with 208 additions and 82 deletions

View File

@@ -0,0 +1,12 @@
fn os_date_t os_date_now(void) {
os_date_t result = {0};
time_t time = time(NULL);
struct tm *lt = localtime(&time);
result.sec = lt->tm_sec;
result.min = lt->tm_min;
result.hour = lt->tm_hour;
result.day = lt->tm_mday;
result.month = lt->tm_month;
result.year = lt->tm_year;
return result;
}