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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6b27885de40df95 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-20 15:24:03 PST Newsgroups: comp.lang.ada Path: supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!howland.erols.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: Date & time formatting operations for review X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3AB7E0AE.4D2151CD@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <3AB77D0C.4492D7A5@boeing.com> Mime-Version: 1.0 Date: Tue, 20 Mar 2001 22:58:54 GMT X-Mailer: Mozilla 4.5 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: supernews.google.com comp.lang.ada:5944 Date: 2001-03-20T22:58:54+00:00 List-Id: Ted Dennison wrote: > > I don't see anything in there for retrieving the day of the week. Other than > that, it looks pretty good. PragmARC.Date_Handler already has a day-of-week function, so it isn't new. The algorithm (by Zeller, 1887) relies on taking a modulus, rather than a remainder. Numerous implementations in Pascal didn't work without fudging because "mod" was really "rem". Jeff