Re: Is there a unix command to display unix user account expiry, inactive expiry

From: swim learning (shahswim_at_yahoo.com)
Date: 06/10/04


Date: 10 Jun 2004 13:14:21 -0700

Assuming 12580 is the number of days from the epoch, (Jan 1, 1970),
convert the days to seconds and feed to the perl localtime() function:

perl -e 'print scalar localtime(12580 * 24 *3600);'
Thu Jun 10 20:00:00 2004

jksharma@yahoo.com (Jitendra Sharma) wrote in message >
> 2. Is there a Solaris API to convert expiry date in /etc/shadow to
> mm/dd/yy format and vice-versa ?ie.
>
> jk1:2j92MGiE0iljY:12577:7:30:7::12580: <--How can I convert 12580 to
> 06/11/2004?
>