Tom Van Baak <[email protected]> wrote: > > 32-bit integers is sufficient. Use days instead of seconds. Use MJD > instead of JD. Here's an example: > > Step 1, convert calendar date to MJD, and then to GPS day:
Mark was asking for the reverse calculation, which is a bit trickier :-) My version is at http://fanf.livejournal.com/93771.html Wikipedia has a version https://en.wikipedia.org/wiki/Julian_day#Julian_or_Gregorian_calendar_from_Julian_day_number Tony. -- f.anthony.n.finch <[email protected]> http://dotat.at/ - I xn--zr8h punycode Shannon, South Rockall: Southerly becoming cyclonic in west, 5 to 7, occasionally gale 8. Rough or very rough. Occasional rain. Moderate or poor, occasionally good. _______________________________________________ time-nuts mailing list -- [email protected] To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts and follow the instructions there.
