just as an update, something is making the Arduino re-boot (I think). The field xxx is just a record counter and would range from 1 to 720 for this sample (number of days per month x 24).
Time is taken from the RTC using the function rtc.now() and now.hour(). The record counter is reset on change of the month where a new file is written to the memory card and the record count is re-set back to 1. The only other time it is re-set back to 1 is when the program starts.
I am now inclined to be thinking about the power supply and noise ??
DDHh,xxx,YYYYMMDD,Hh,,t1,t2
2007,348,20220920,07,,7,17,
2008,349,20220920,08,,8,16,
2009,350,20220920,09,,8,16,
2010,351,20220920,10,,12,16,
2011,352,20220920,11,,16,16, This is the record for 20/09/2022 at 11:00. Record counter should be 480 + 11
2011,1,20220920,11,,16,38, False
2011,1,20220920,11,,16,37, False
2012,2,20220920,12,,20,16,
2013,3,20220920,13,,23,16,
2014,4,20220920,14,,25,16,