/ Published in: PHP
This function simply takes a Windows UTC timestamp and converts it to Unix epoch.
This was useful when I was pulling LDAP information from Active Directory and the timestamps were ridiculous. Windows builds timestamps by counting seconds since January 1 1601.
This was useful when I was pulling LDAP information from Active Directory and the timestamps were ridiculous. Windows builds timestamps by counting seconds since January 1 1601.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function convert_windows_time_to_unix($wintime) { return $wintime / 10000000 - 11644473600; }