Converting the date (not timestamp)
Ok, here is the problem I am facing.
Using the /etc/shadow file, an account expires 12600. Now, I know that this is the number of days since 01/01/1970 until the account expires.
I am trying to write a php script that takes that number and translates it to the actual date (Jul-1-2004). Does anyone have any ideas? I am completely stumped. Even if its just an algorithim, its better than I can come up with.
Thanks in advance,
Mark
|