On my system the man page of shadow defines the third column value this way:
The date of the last password change, expressed as the number of days since Jan 1, 1970.
I have an example value "17050". passwd -S
says this is the "2016-09-06". But the seconds since 1970 are "1473112800.0". When I calculate 1473112800.0/(60*60*24) I get "17049.9166666666".
How is the "17050" calculated? Is it rounded or is it always the next greater integer?
date +%s
does not actually give the number of seconds since Jan 1 1970 0000Z; it's currently 27s short. Most recently, there is nodate +%s
for 2016-12-31 23:59:60Z – derobert Sep 25 '17 at 16:34