[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Progress with time
Tom Droege wrote:
>
> Below is the algorithm that Cary sent me. If I crank in the data, and use
> the mjd formula,
> then I come out 1/2 day off by some dates the Jure sent me:
>
> 2001-03-11 at 0 UT should come out 2451979.5
> 2000-01-01 at 12:00 should be 2451545
>
> To match these two dates, I have to add .5 to the formula below. Can
> anyone check this?
>
> Note I am putting in the 4 digit year and month without adding the one as
> indicated in the code below.
>
> Tom Droege
>
Hmm. It seems like every time I go through the MJD/JD thing that .5 day
thing pops up. Of course, it's been long enough since I last solved the
problem I can't remember the exact details with the .5 day. Just off
the top of my head I do remember that the formula is extremely sensitive
to all of those casts and parens controlling the order of evaluation.
Check those out.
I have to run up to Home Depot then finish fixing the side gate before
the sun sets here in CA. After that I'll jump on this problem with you
- we'll get it working.
-Cary