in reply to Date in Filename
Whatever method you use, I recommend dates in the sortable format: "YYYY-MM-DD.hh-mm-ss".
my @now = localtime(); my $timestamp = sprintf("%04d-%02d-%02d.%02d-%02d-%02d", $now[5]+1900, $now[4]+1, $now[3], $now[2], $now[1], $now[0]); my $filename = "error.$timestamp.log";
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Date in Filename
by sauoq (Abbot) on May 19, 2003 at 21:22 UTC |