|
Posted by Fairul Izham on 09/27/06 07:33
at last. thanks to author of the website http://www.silisoftware.com
function FILETIMEtoUNIXtime($FILETIME, $round=true) {
// FILETIME is a 64-bit unsigned integer representing
// the number of 100-nanosecond intervals since January 1, 1601
// UNIX timestamp is number of seconds since January 1, 1970
// 116444736000000000 = 10000000 * 60 * 60 * 24 * 365 * 369 + 89 leap days
if ($round) {
return round(($FILETIME - 116444736000000000) / 10000000);
}
return ($FILETIME - 116444736000000000) / 10000000;
}
"Fairul Izham" <fairul@tmnet.com.my> wrote in message
news:4513b5d6_1@news.tm.net.my...
> Hello experts,
>
> I'm having trouble converting from FILETIME to UNIX Timestamp like this
> website do http://www.silisoftware.com/tools/date.php
>
> Does anyone can show me the algorithm how to convert it.
>
Navigation:
[Reply to this message]
|