See here .
Actually it comes down to converting the FILETIME timestamp to a UNIX timestamp:
$fileTime = "130435290000000000"; $winSecs = (int)($fileTime / 10000000); // divide by 10 000 000 to get seconds $unixTimestamp = ($winSecs - 11644473600); // 1.1.1600 -> 1.1.1970 difference in seconds echo date(DateTime::RFC822, $unixTimestamp);
Stefan gehrig
source share