Sunday, January 6, 2013

LDAP shadowlastchange - Weird Date Format


I'm working on a PHP script that adds an user to a directory using LDAP.

Here's the formula required to get the date format that shadowlastchange uses:
$unixTimeDays = floor(time()/86400);

It's the days since the last epoch.

No comments:

Post a Comment