mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
Kernel: Use UnixDateTime wherever applicable
"Wherever applicable" = most places, actually :^), especially for networking and filesystem timestamps. This includes changes to unzip, which uses DOSPackedTime, since that is changed for the FAT file systems.
This commit is contained in:
parent
c1323febc2
commit
939600d2d4
41 changed files with 115 additions and 125 deletions
|
@ -19,9 +19,9 @@ void initialize()
|
|||
s_boot_time = now();
|
||||
}
|
||||
|
||||
Duration boot_time()
|
||||
UnixDateTime boot_time()
|
||||
{
|
||||
return Duration::from_timespec({ s_boot_time, 0 });
|
||||
return UnixDateTime::from_seconds_since_epoch(s_boot_time);
|
||||
}
|
||||
|
||||
static bool update_in_progress()
|
||||
|
|
|
@ -13,6 +13,6 @@ namespace Kernel::RTC {
|
|||
|
||||
void initialize();
|
||||
time_t now();
|
||||
Duration boot_time();
|
||||
UnixDateTime boot_time();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue