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

Function getFileModTime

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

Source from the content-addressed store, hash-verified

424#include <ctime>
425
426time_t getFileModTime(const char* path)
427{
428 if (!path || !path[0])
429 return 0;
430 LocalPath(fn, path);
431 struct stat st;
432 if (stat(fn, &st) != 0)
433 return 0;
434 return st.st_mtime;
435}
436
437bool getFileLocalTime(const char* path, int& day, int& month, int& year, int& hour, int& minute)
438{

Callers 2

CheckContinueSaveFunction · 0.85
getFileLocalTimeFunction · 0.85

Calls 2

_statClass · 0.85
statClass · 0.70

Tested by

no test coverage detected