mirror of
https://github.com/BoredDevNL/BoredOS.git
synced 2026-05-15 10:48:38 +00:00
16 lines
597 B
C
16 lines
597 B
C
// Copyright (c) 2023-2026 Chris (boreddevnl)
|
|
// This software is released under the GNU General Public License v3.0. See LICENSE file for details.
|
|
// This header needs to maintain in any file it is present in, as per the GPL license terms.
|
|
#include <stdlib.h>
|
|
#include <syscall.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
(void)argc; (void)argv;
|
|
int dt[6];
|
|
if (sys_system(11, (uint64_t)dt, 0, 0, 0) == 0) {
|
|
printf("Current Date: %d-%d-%d %d:%d:%d\n", dt[0], dt[1], dt[2], dt[3], dt[4], dt[5]);
|
|
} else {
|
|
printf("Error: Could not retrieve date.\n");
|
|
}
|
|
return 0;
|
|
}
|