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

From: Ian G Batten (I.G.Batten_at_batten.eu.org)
Date: 06/10/04


Date: Thu, 10 Jun 2004 15:23:26 +0000 (UTC)

In article <31ea0aae.0406091029.52c38a1c@posting.google.com>,
Jitendra Sharma <jksharma@yahoo.com> wrote:
> 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?

/usr/bin/perl -e 'print scalar localtime(12580*86400)'

ian