Kernel/BAN: Make Time a struct in BAN and add formatter to it

This commit is contained in:
2022-12-13 12:37:26 +02:00
parent 3cda527987
commit 52c793bb5c
4 changed files with 38 additions and 18 deletions

View File

@@ -103,7 +103,7 @@ void kernel_main(multiboot_info_t* mbi, uint32_t magic)
return;
auto time = RTC::GetCurrentTime();
kprintln("Today is {2}:{2}:{2} {2}.{2}.{4}", time.hour, time.minute, time.second, time.day, time.month, time.year);
kprintln("Today is {}", time);
kprintln("Hello from the kernel!");