GPS

Is there nay way at all easy to convert UTC time from a GPS device for different time zones. Adafriut published a new GPS lib that finally not only works but it's functions are easy to use, So I was able to use it with one of their TFT displays rather easily, some small things with printing 0-leading numbers but that is not so much as the two corrections that must be done for day and time. The only method I can think of is to convert to the Julian calendar partially or completely, adjust the date and and then convert back. Something I really don't want to even investigate now.

Doc

Why not just make a variable and store in it a signed int (or char) designating the requisite changes to the time? You could just use

time = (gps.getTime() + timezone) % 24; //or whatever the proper syntax is

Timezone would store, for example, -6 for central standard time, GMT -6.

The time.h library has an "offset" value you can use to set the timezone (it's +10 hours here in Australia). I use it with the TinyGPS library.

Hope this helps.

Thank you for time.h I will look into it. as to the first responder the solution must catch the midnight issue too and correct the date as well and although 24 hour time is a world standard I read very well I choose not to have to on something I am building. I am using a little color graphic display I bought from Adafruit and I plan to use different color text to display Am or Pm so I don't even have to look out of the window...

Doc