[time-nuts] GPS seconds conversion on an Arduino

Tony Finch dot at dotat.at
Mon May 15 05:34:39 EDT 2017

Tom Van Baak <tvb at LeapSecond.com> 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

f.anthony.n.finch  <dot at dotat.at>  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.

More information about the time-nuts mailing list