[time-nuts] GPS seconds conversion on an Arduino
j99harman at gmail.com
Sun May 14 10:49:46 EDT 2017
On Sun, May 14, 2017 at 9:25 AM, Ben Hall <kd5byb at gmail.com> wrote:
> I think I can make the process work *if* the time library doesn't hold the
> answer. (and I think it does)
The Arduino Time library can convert back and forth between numeric
year/month/day/hour/minute/second and a uint32 representing the number of
seconds since 1/1/1970. It does not take leap seconds into account however
so you would have to make an adjustment for them. It is reasonably well
documented and includes some handy conversion macros and examples.
As with other Arduino libraries, the source code is provided so you can see
how they did it.
More information about the time-nuts