Relative Content

Tag Archive for datetimearduinotimestampadafruitreal-time-clock

RTC module current timestamp has truncated seconds

I have a simple bit of C (Arduino) code which uses a non-blocking interval timer to compare two different timestamp values to determine weather or not a specific interval x has passed, if so, then reset the timer and log/print the date timestamp. The problem I am facing is that all of my timestamps after the first one have a truncated value for the seconds field e.g. 14:02:00 instead of 14:02:31.