| 424 | #include <ctime> |
| 425 | |
| 426 | time_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 | |
| 437 | bool getFileLocalTime(const char* path, int& day, int& month, int& year, int& hour, int& minute) |
| 438 | { |
no test coverage detected