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.3 required=5.0 tests=BAYES_00,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: Mike Young Subject: Re: How to convert an Fixed_Point to to an Integer ? Date: 1996/12/30 Message-ID: <32C78CD9.3AC9@mcs.com>#1/1 X-Deja-AN: 206727440 references: <01bbf058$cbdbf980$LocalHost@jerryware> <1996Dec23.072835.1@eisner> <01bbf179$0c4361e0$9b2d5c8b@jerryware> <01bbf24c$a8db4800$b72d5c8b@jerryware> <32C2A408.53B8@watson.ibm.com> content-type: text/plain; charset=us-ascii organization: Fen Software, Inc. mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0Gold (Win95; I) Date: 1996-12-30T00:00:00+00:00 List-Id: Norman H. Cohen wrote: > > -- Note: This package works from the beginning of 1970 until the end > of > -- 2099, after which the package Ada.Calendar is no longer usable. > -- During this period, a year y is a leap year if and only if y > mod 4 = 0. ====== I believe the year 2000 is *not* a leap year. I recall vaguely they skip a leap year every 200 years, such that it's a leap year if the number is evenly divisible by 4 and not by 200. You may want to verify this before casting this in code. The net result is to cause all calc's spanning 2/28/2000 to be reported incorrectly. Most specifically, Previous_Leap_Years needs to be adjusted down one for dates beyond 2/28/2000. Mike.