Great Circle Associates Majordomo-Users
(June 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: long date (year) hack for archive or archive2
From: Neil Moore <amethyst @ maxwell . ml . org>
Date: Mon, 16 Jun 1997 22:05:47 -0400
To: majordomo-users @ GreatCircle . COM
In-reply-to: <ufazpsqnjl0.fsf@sina.hpc.uh.edu> (message from Jason L TibbittsIII on 16 Jun 1997 19:45:15 -0500)

> 
> >>>>> "BLH" == Brian L Heess <dmbong@commline.com> writes:
> 
> BLH> Has anybody hacked either of these yet to have the archives created at
> BLH> listname.19970615 instead of listname.970615 ?
> 
> Well, here's 30 seconds' work.  Completely untested...
> 
> --- archive2.pl.orig	Mon Jun 16 19:43:22 1997
                                            ^^^^
> +++ archive2.pl	Thu Dec 12 09:01:39 1996
                                            ^^^^
>   [snip]
> -	$suffix = sprintf(".%04d%02d%02d", $year, $mon, $mday);
> +	$suffix = sprintf(".%02d%02d%02d", $year % 100, $mon, $mday);
                                           ^^^^^^^^^^^

Err.. it looks like you got the patch reversed

-- 
-Neil Moore          http://www.sfhs.floyd.k12.ky.us/~amethyst/
(finger amethyst@valjean.sfhs.floyd.k12.ky.us for my Geek Code)


Follow-Ups:
References:
Indexed By Date Previous: unknown mailer error 139
From: "Matthew O'Brien" <matthew@uow.edu.au>
Next: Re: MhonArc alias?
From: Patrick Wiseman <lawppw@gsulaw.gsu.edu>
Indexed By Thread Previous: Re: long date (year) hack for archive or archive2
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: long date (year) hack for archive or archive2
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>

Google
 
Search Internet Search www.greatcircle.com