MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / getFileLocalTime

Function getFileLocalTime

engine/Poseidon/Foundation/Common/Platform.cpp:437–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437bool getFileLocalTime(const char* path, int& day, int& month, int& year, int& hour, int& minute)
438{
439 time_t mt = getFileModTime(path);
440 if (mt == 0)
441 return false;
442 struct tm local;
443 if (!localtime_r(&mt, &local))
444 return false;
445 day = local.tm_mday;
446 month = local.tm_mon + 1;
447 year = local.tm_year + 1900;
448 hour = local.tm_hour;
449 minute = local.tm_min;
450 return true;
451}
452
453#endif
454

Callers 2

OnChangeMissionMethod · 0.85
OnChangeCampaignMethod · 0.85

Calls 1

getFileModTimeFunction · 0.85

Tested by

no test coverage detected