Calculating LDAP ShadowLastChange

ShadowLastChange Value is the number of days since January 1st, 1970

Calculate from Linux Command Prompt

$ date
Mon Aug  5 18:50:17 MST 2013
 

$ echo $(($(date --utc --date "$1" +%s)/86400))
15923


There has been 15923 days from Jan 1, 1970 to Aug 5, 2013

No comments:

Post a Comment

Help a friend, share your knowledge