Re: How to handle a 64bit FILETIME?

From: Date: Thu, 03 Mar 2005 13:04:00 +0000
Subject: Re: How to handle a 64bit FILETIME?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-209900@lists.php.net to get a copy of this message
Tom Cannaerts wrote:
Hello, I'm processing a binary file, and in that file there is a 64bit FILETIME value. This value represents the number of 100-nanoseconds since 1/1/1601. I would like to convert it to a somewhat more usable value, since I eventually will need to display that value as a human readable date.
the BC maths extension may be what you want (in order to convert the 64bit 'number'** to something you can use with date functions) http://nl2.php.net/manual/en/ref.bc.php ** your 64bit FILETIME 'number' should be passed to the relevant bc_*() funcs as a string
Any solution is welcome. Tom


« previous php.general (#209900) next »