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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a0aa2b1c348fd6a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews2.google.com!not-for-mail From: fmdf@tiscali.it (fabio de francesco) Newsgroups: comp.lang.ada Subject: Re: shifting bits Date: 30 Aug 2004 17:22:36 -0700 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 80.183.74.82 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1093911757 29772 127.0.0.1 (31 Aug 2004 00:22:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 31 Aug 2004 00:22:37 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:3192 Date: 2004-08-30T17:22:36-07:00 List-Id: tmoran@acm.org wrote in message news:... > > > There's an error in: > > > > date_y := date_y * 2**9; > > > You need to subtract 1900 first. > > I don't think so. I have run the compiled program and it works. > The "Ada Way" generally tries to use logic in preference to > testing/debugging. In this case, 2099 * 2**9 > 2**20. Thank you, now I can see the problem with year > 2047. Fabio De Francesco