Re: TIB: TI-Basic Calender?
[Prev][Next][Index][Thread]
Re: TIB: TI-Basic Calender?
In a message dated 2/7/99 2:47:15 PM Central Standard Time, jody1@alaska.net
writes:
> Interesting point. I tried something like this a while back, but I ran
> into one big snag. Leap years. I can't remember everything, but
> somewhere way back in the past and somewhere in the not so far future,
> something happens that shouldn't. Like, I looked in the phone book at
> the back where they have the calendars for all the years from 1900 to
> 2025 - I think that was all the years - but there wasn't a _reliable_
> pattern. There was something, I just can't remember what it was, that
> made it impossible to come up with a reliable formula. I know that
> there are simple programs for computers that will tell you what day you
> were born and how many days you've been alive and stuff like that, but I
> don't know how they operate.
You calculate leap year as an extra day if the year is divisible by four,
UNLESS it is divisible by 200. I wrote the same program in Pascal a few years
ago and it works beautifully. It's not really too hard if you know the
algorithm.
PJC II