Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 1998 11:26:40 -0400
From:      Robert Beer <r-beer@onu.edu>
To:        Dean Hollister <dean@odyssey.apana.org.au>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Expire field in master.passwd?
Message-ID:  <l03102861b14ea4662a8e@[140.228.15.35]>
In-Reply-To:  <Pine.BSF.3.96.980404154611.10494A-100000@odyssey.apana.org.au>
References:  <l03102845b14abd8efa0f@[140.228.15.35]>

next in thread | previous in thread | raw e-mail | index | archive | help
At 3:46 AM -0400 4/4/98, Dean Hollister wrote:
>On Fri, 3 Apr 1998, Robert Beer wrote:
>
>> You might try this perl script:
>> #!/usr/local/bin/perl
>> require "ctime.pl";
>
>Thanks. Works a treat. BTW, any way to omit the time, and just display the
>date?

Well, this will work:
#!/usr/local/bin/perl
require "ctime.pl";

($weekday, $month, $day, $time, $year) = split(" ",&ctime($ARGV[0]));

print "$weekday $month $day $year\n";

---
Bob Beer <r-beer@onu.edu>
Ohio Northern University, Academic Computer Services, Ada, OH  45810



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?l03102861b14ea4662a8e>