Re: Calendar programming
From: | Roger Mills <rfmilly@...> |
Date: | Sunday, April 25, 2004, 23:17 |
Mark J. Reed wrote:
(much interesting, but snipped)
it's written in Common Lisp, but there's also a Java
>...> implementation of the same idea available from calendarists.com, and I
> have ported the arithmetical calendar subset to both Perl and Ruby.
This information is of minimal use to me (mea culpa, I know, but some new
tricks just aren't worth learning, arf arf :-) )
However, the rest of your discussion is essentially what I did for the Cindu
situation. The Rata Die 1 in our case was my birthday, May 23, 1934 = 1st
day/1st month/year 702, an entirely arbitrary choice, but why not. Then it
was just a matter of figuring out the number of Earth days that have passed,
and converting that, laboriously, to Cindu days. Getting into specific time
of day is harder but not impossible; but math.errors tend to creep in....
I've updated this 3 or 4 times, and I suppose if I did it really frequently
I'd get a system going...
At some point I need to figure out what even number of Cindu days = an even
number of Earth days (like, 5 degrees C = 9 deg. F) after which it would be
easy to keep track. Assuming that I need to.....
>...>
Reply