I've determined that I need to convert a Windows FILETIME type to something PHP can work with. I want this to be a PHP function.
Say I have this value: 60 F3 47 D1 57 98 C9 01
Step 1: (Thanks to this page http://www.cyanwerks.com/file-format-url.html) I know I need to change the order to 01 C9 98 57 D1 47 F3 60
Step 2: ?????
From the MSDN documentation:
Contains a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).
What kind of time does PHP need? Is it a time_t? if so, just subtract your DateTime from the unix epoch (1970-jan-01 UTC) and grab the TotalSeconds value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With