nick-nuti / Backup-Program

2 stars 0 forks source link

C++ localtime for Windows #18

Open nick-nuti opened 3 years ago

nick-nuti commented 3 years ago

Winlibs -> GCC 10.3.0 and Clang++ v11.1 require localtime to be different than using the following:

struct tm datemod; localtime_r(&path_to_check.st_mtime, &datemod); lastwrite = (((1900 + datemod.tm_year) 10000000000) +((1 + datemod.tm_mon) 100000000) +((datemod.tm_mday) 1000000) +((datemod.tm_hour) 10000) +((datemod.tm_min) * 100)