Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 09:09:08 +0100
From:      Brad Knowles <brad.knowles@skynet.be>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>, Nathan Mace <nmace85@yahoo.com>
Cc:        freebsd-chat@freebsd.org
Subject:   Re: backups of log files
Message-ID:  <p05101564b8b4b9533bcd@[10.0.1.9]>
In-Reply-To: <20020313074829.GC375@hades.hell.gr>
References:  <200203130057.TAA27975@uce55.uchaswv.edu> <20020313074829.GC375@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
At 9:48 AM +0200 2002/03/13, Giorgos Keramidas wrote:

>  You will probably want to have the day of month and month to have two
>  digits, later on.  As others have pointed out -questions is the best place
>  for general FreeBSD questions, but here's a snippet that you might find
>  interesting:
>
>  	use POSIX;
>  	$s = strftime("%d.%m.%Y", localtime());
>  	print "$s\n";

	You should swap the order of year, month, and day, so that the 
files will automatically sort into the proper date order when you 
'ls' them.  Moreover, now you can claim that your program is 
ISO-compliant with regards to handling dates.  ;-)

-- 
Brad Knowles, <brad.knowles@skynet.be>

Do you hate Microsoft?  Do you hate Outlook?  Then visit the Anti-Outlook
page at <http://www.rodos.net/outlook/>; and see how much fun you can have.

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
     -Benjamin Franklin, Historical Review of Pennsylvania.

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




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