On Sun, May 14, 2017 at 9:25 AM, Ben Hall <kd5...@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.


-- 

--Jim Harman
_______________________________________________
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