You are here: Re: Converting from FILETIME to UNIX Timestamp « All PHP « IT news, forums, messages
Re: Converting from FILETIME to UNIX Timestamp

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация