On Mon, Aug 07, 2000 at 02:19:52PM -0500, Dave Bacon wrote:
I typed the script in and have found it to work just fine with the exception of what looks like a Y2K bug. Instead of creating a YYMM directory having a name of "0008" it creates one with the name of "10008". I think this means it calculates the year as being 100, which is one more than 99 (1999). I have included the script in this email. Any ideas in correcting this problem? Thank you
Alas, O'Reilly, how thou art fallen!
$newdir = sprintf("%02d%02d",$time[5],$time[4]+1);
Should be $newdir = sprintf("%04d%02d",$time[5]+1900,$time[4]+1); for a YYYYMM archive directory. If you want to keep using the old style, $newdir = sprintf("%02d%02d",$time[5]%100,$time[4]+1); R -- Roger Burton West -/- roger@firedrake.org http://firedrake.org/roger/