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

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

View File

@@ -1,20 +1,10 @@
#pragma once
#include <stdint.h>
#include <BAN/Time.h>
namespace RTC
{
struct Time
{
uint8_t second;
uint8_t minute;
uint8_t hour;
uint8_t day;
uint8_t month;
int year;
};
Time GetCurrentTime();
BAN::Time GetCurrentTime();
}