Hallo,

time_t ist der Typ. Hier die verschiedenen Datumswerte, die "stat" liefert.

PHP-Code:
time_t st_atime The most recent time the file was accessed.

 
time_t st_mtime The most recent time the contents of the file were changed.

 
time_t st_ctime The most recent time the status of the file was changed 
Hier eine C-Funktion, welche aus st_mtime ein Datum im Format JJJJMMTT macht.

PHP-Code:
long int RetrieveEntryAccessTime(char *path) {                                          
  
struct stat info;                                                                     
  
struct tm date;                                                                       
  if (
stat(path, &info) != 0)                                                           
    return -
1;                                                                          
  else {                                                                                
    
localtime_r(&info.st_mtime, &date);                                                 
    return (
date.tm_mday) + ((date.tm_mon 1) * 100) + ((date.tm_year 1900) * 10000);
  }                                                                                     

Wenn Du ein anderes Datum willst, dann musst Du nur st_mtime auswechseln.