From owner-freebsd-questions Mon Apr 6 08:26:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA05786 for freebsd-questions-outgoing; Mon, 6 Apr 1998 08:26:35 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from postoffice.onu.edu (postoffice.onu.edu [140.228.10.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA05773 for ; Mon, 6 Apr 1998 08:26:21 -0700 (PDT) (envelope-from r-beer@onu.edu) Received: from [140.228.15.35] (asterion.onu.edu [140.228.15.35]) by postoffice.onu.edu (8.8.5/8.8.5) with ESMTP id LAA13069; Mon, 6 Apr 1998 11:25:40 -0400 (EDT) Message-Id: In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Mon, 6 Apr 1998 11:26:40 -0400 To: Dean Hollister From: Robert Beer Subject: Re: Expire field in master.passwd? Cc: FreeBSD Questions Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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