Base: Use std::chrono for time handling

Replace platform specific implementations with standard C++ std::chrono.
As time_t is now 64-bit on all supported systems, use it to set the clock.
This commit is contained in:
Ladislav Michl
2023-11-15 10:28:15 +01:00
parent 7b70d3fc6f
commit a691d6fcdc
6 changed files with 66 additions and 229 deletions

View File

@@ -1799,7 +1799,7 @@ private:
if (useFCBakExtension) {
std::stringstream str;
Base::TimeInfo ti = fi.lastModified();
time_t s =ti.getSeconds();
time_t s = ti.getTime_t();
struct tm * timeinfo = localtime(& s);
char buffer[100];