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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,29f311e5e4153888 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!wn13feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail From: Dave Thompson Newsgroups: comp.lang.ada Subject: Re: need help with errors im getting Message-ID: References: <1119650372.546285.220190@z14g2000cwz.googlegroups.com> <1119724710.107186.139010@g47g2000cwa.googlegroups.com> <6g5sb1ptj1611oq6vbiirutlj9gv5lv39m@4ax.com> <1119773542.691728.137240@g49g2000cwa.googlegroups.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 04 Jul 2005 05:38:37 GMT NNTP-Posting-Host: 12.76.16.118 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1120455517 12.76.16.118 (Mon, 04 Jul 2005 05:38:37 GMT) NNTP-Posting-Date: Mon, 04 Jul 2005 05:38:37 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:11844 Date: 2005-07-04T05:38:37+00:00 List-Id: On Sun, 26 Jun 2005 23:33:11 GMT, Dennis Lee Bieber wrote: > when February => > if (Y mod 4) = 0 and (Y mod 400) /= 0 then > if D > 29 then mod 4 except not mod 100 except YES mod 400 Either (@4= and @100/= ) or @400= or @4= and (@100/= or @400= ) works. For years 1940 .. 2020 which you noted earlier was one version of the OP's spec, or up to 1901 .. 2099, @4= is enough. Of course, this is the same line of thinking that gave us Y2K. At least in Ada any such decisions can and should be selfdocumented and easy to find -- if not necessarily to fix/change. - David.Thompson1 at worldnet.att.net