C (179/207)

From:amiga-c
Date:27 Dec 99 at 13:38:03
Subject:Version String again...

From: amiga-c@onelist.com

Hi Guys,

> Yes, there is a Y2K problem with the "Version" command. As I wrote, it
> adds 1900+<year number> to calculate the actual year number. Thus, "00" would
> be just as wrong as "2000", see?

So version prints a garbage date if <year> is set to either 00 or 2000.
Someone has already pointed out that setting the year to 100 works as a
temporary fix. (Version seems to parse the date correctly, and at least the
day and month values match what they are in the version string!)

Would someone like to comment the likelihood of this method working with
future versions of version?

All the best,



Alastair M. Robinson, email:blackfive@fakenhamweb.co.uk
Amiga 4000/030, 18Meg RAM, 4.3Gig HD, Mustek ScanExpress 6000SP
C, Assembler (68k + PIC16C84), PostScript, ARexx, AMOSPro(!), AmigaDOS

A closed mouth gathers no feet.