Kernel/BAN: move unix time conversion to BAN and add stat to Shell

This commit is contained in:
Bananymous
2023-03-27 00:44:57 +03:00
parent e55860eb6b
commit 666051fd34
7 changed files with 119 additions and 45 deletions

View File

@@ -9,15 +9,18 @@ namespace BAN
struct Time
{
uint8_t second;
uint8_t minute;
uint8_t hour;
uint8_t week_day;
uint8_t day;
uint32_t year;
uint8_t month;
int year;
uint8_t day;
uint8_t hour;
uint8_t minute;
uint8_t second;
uint8_t week_day;
};
uint64_t to_unix_time(const BAN::Time&);
BAN::Time from_unix_time(uint64_t);
}
namespace BAN::Formatter