From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_50,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1850e397df49d95 X-Google-Attributes: gid103376,public From: Steve Jones - JON Subject: Re: How to convert an Fixed_Point to to an Integer ? Date: 1996/12/30 Message-ID: <2spvzshybz.fsf@hpodid2.eurocontrol.fr>#1/1 X-Deja-AN: 206763775 references: <01bbf058$cbdbf980$LocalHost@jerryware> organization: Eurocontrol Experimental Centre, Bretigny-Sur-Orge, France newsgroups: comp.lang.ada Date: 1996-12-30T00:00:00+00:00 List-Id: Dave Barnes writes: > > Steve Jones - JON wrote: > > > > > > Each century is not a leap year (eg 1900 wasn't) but Millenia ARE leap years > > so 2000 will be one. > > > > Where has *this* come from? > > The rule is simply divisible by 4 except if a multiple of 100 when must be divisible by > 400. So 1900 wasn't, 2000 will be and the year 3000 won't be a leap year (but I really > don't give a damn about the last one). Doh! Okay I got in horribly wrong... Bugger. But luckily the one time I actually had to write some date type handling stuff I must have read up on it rather than listening to the elves as the code works until INTEGER runs out (in years both ways :) nothing like excess when being careful) so for those planning to travel in Sheffield in the year 2400 you will be Okay:) I hate being found to be stupid :( The "rule" came from my imagination and a heavy christmas break :) -- ---------------------------------------------------------------------------- Steve Jones | "Atticus says that carring a gun is a sure Eurocontrol Experimental Centre | way to get shot" -- Scout Finch in | To Kill a Mocking Bird by Harper Lee ---------------------------------------------------------------------------- Do not add me to any commercial mailing lists, all unsolicted commercial email will be billed at my current rate. ----------------------------------------------------------------------------