Converting GPS seconds to Gregorian date/time on the Arduino will be an arduous 
task.  You take GPS seconds and add it to the GPS starring epoch to get a 
Julian date.  Then add in the number of leap seconds as a fraction of a day to 
get UTC and possibly add in a time zone offset for local time.  Don't forget to 
do daylight savings time conversion...  Then convert the result to Gregorian 
date/time for display.  

The problem is the Arduino floating point library is single precision only and 
does not have the resolution needed to handle the numbers involved.  Doing it 
with integer arithmetic (long longs) opens up a whole new can of worms.
_______________________________________________
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to