Paul's Programming Notes     Archive     Feed     Github

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.