How to convert LDAP timestamp to Unix timestamp

后端 未结 5 2222
南方客
南方客 2020-12-05 14:59

When I retrieve the LDAP attribute \"pwdLastSet\" of an Active Directory using PHP I get a value like 1.29265206716E+17. I know that this value represents the date \"Tue Aug

5条回答
  •  甜味超标
    2020-12-05 15:37

    There's this page suggesting that it is "100-nanosecond units passed since 1.1.1601 00:00:00", this might be helpful.

    EDIT: 1600 »» 1601

提交回复
热议问题