strftime("%D", localtime($unixtime))
where $unixtime is assigned to the value you pulled from the master.passwd file.
The %D simply returns a MM/DD/YY format date.
Check to see if Python has similar functions... they are POSIX compliant.
Murat USTUNTAS wrote:
Hello all,
On my system, some users have expire day user settings. I write a (python) script
then parse the: 7.th selection in the master.passwd
blabla:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:1064005200:xxxx:xxxx:xxxx:xxxx
How can I conver the number like 1064005200 to human readable date format ?
Or, there is a way to collect the information from a command interactively ?
Regards,
Murat Ustuntas
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"