uBlox time to local time

You’re welcome Dale - glad that’s working for you.

Just FYI, the RTC will be slightly slow. The Unix Epoch is extracted from the NAV-PVT message and that is transmitted just after the top-of-second.

If you want your RTC to be exact, you need to use the UBX-TIM-TP message - which gives the time for the next Time Pulse (PPS) - and then sync your RTC on the rising edge of the TP pulse using an interrupt. It works well. We’re doing exactly that on a new product which can act as a Network Time Protocol server.

Best,

Paul