From: Paul A Storm <paul.a.storm@lmco.com>
Subject: Re: Zeller's Algorithm
Date: Wed, 24 Jul 2002 14:30:48 -0700
Date: 2002-07-24T14:30:48-07:00 [thread overview]
Message-ID: <3D3F1C88.B430AC1F@lmco.com> (raw)
In-Reply-To: MPG.17a87c93a2f48dc6989692@news.ip-plus.net
Thomas Wolf wrote:
I downloaded your code and ran the test routine, np. I'll check out the
contents. I had already
decided to use a Julian conversion with a mod 7 as a basis for "Plan
B". Thanks for your
reply.
I am still confused as to why the Zeller algorithm wouldn't work. Since
the algorithm has been
around since 1875 I figure it has proven out. Although I am still
cogitating on whether it
takes into account for centennial non-leap years(1800,1900, etc.) and
quatra-centennial leap years(i.e. 2000).
It bugs me when I can't figure out the reason for some code not
working. Know what I mean?
Did you try to compile the program from the link I gave and did you have
any problems like I had?
>
> paul.a.storm@lmco.com wrote:
> > Help!
> >
> > I am trying to find a Ada implementation of Zeller's algorithm that
> > works! I have found several on the web
> > but none of them have worked right.
> >
> > For example I tried this one from
> > http://www.adapower.com/alg/zeller.html Inputting June 19 2002 returns
> > Wednesday, correct. Inputting June 19 1999 produces Sunday, incorrect.
> > That's a Saturday. Inputting
> > February 3, 2002 produces Friday, incorrect. That's a Sunday. What
> > gives?
> >
> > I have had similar weird results using other similar Ada Zeller versions
> > I've found on the web.
>
> You might try the Util.Calendar packages from my Util subsystem,
> available at the URL
>
> http://home.tiscalinet.ch/t_wolf/tw/ada95/util/
>
> Util.Calendars.Universal.Day_Of_Week produces the correct results.
> See the test driver in ./test/calendar_test.adb for some examples.
>
> The Util subsystem is published under the GMGPL.
>
> --
> -----------------------------------------------------------------
> Thomas Wolf e-mail: t_wolf@angelfire.com
--
My perspicacity is only eclipsed by my pertinacity
next prev parent reply other threads:[~2002-07-24 21:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-23 23:56 Zeller's Algorithm Paul A Storm
2002-07-24 7:59 ` Thomas Wolf
2002-07-24 21:30 ` Paul A Storm [this message]
2002-07-29 8:29 ` Thomas Wolf
2002-07-30 4:35 ` Robert Dewar
2002-07-30 8:20 ` Thomas Wolf
2002-07-30 17:17 ` Rick Maffei
2002-07-30 22:10 ` Paul A Storm
2002-07-31 10:51 ` Thomas Wolf
2002-07-31 14:33 ` Frank J. Lhota
2002-07-31 19:13 ` Robert A Duff
2002-07-31 19:26 ` Darren New
2002-07-31 20:01 ` Hyman Rosen
2002-07-31 20:15 ` Frank J. Lhota
2002-07-31 21:08 ` Robert A Duff
2002-07-31 22:34 ` Hyman Rosen
2002-07-31 22:57 ` Robert A Duff
2002-08-01 15:17 ` Hyman Rosen
2002-08-01 16:41 ` Frank J. Lhota
2002-07-31 21:15 ` Dan Nagle
2002-07-31 22:36 ` Hyman Rosen
2002-07-31 22:23 ` Matthew Woodcraft
2002-08-02 7:21 ` Thomas Wolf
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox