Posted By

cllorca on 03/10/09


date utc windows directory active timestamp ldap epoch

Versions (?)

Convert Windows UTC time to Unix epoch

 / 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.

  1. function convert_windows_time_to_unix($wintime) {
  2. return $wintime / 10000000 - 11644473600;
  3. }

Report this snippet  


RSS Icon Subscribe to comments
Posted By: JonyGreen on September 27, 2015

you can try this free online timestamp converter to convert UTC date to timestamp.

You need to login to post a comment.