1
Technical support / DATE update after midnight
« on: November 13, 2016, 05:30:58 PM »
I have a number of FMD88-10s with the FRAM-RTC that report at 12 hour interval to a proprietary server at a central site over the Ethernet connection. Part of the report string is a time-stamp string, generated as below (the format being for Excel)
H$ = LOCSId$ + ";" + STR$(DATE[1]) + "/" + STR$(DATE[2]) + "/" + STR$(DATE[3]) + " "
H$ = H$ + STR$(TIME[1]) + ":" + STR$(TIME[2]) + ":" + STR$(TIME[3]) + ";"
Occasionally, if the report happens between 00:00 and about 00:30, the day field (DATE[3]) remains the previous day. I haven't been able to characterise this. It certainly is not every report and only some sites.
The segment below is from a log, the site, among 15 others reporting the date as the 13th, reports the 12th. Previous log at midday on the 12th for this site contained the correct date, as did the log before that at 00:00 on the 12th.
;2016/11/12 0:22:47;
Question is, does the day field of the DATE variable take some time to update after midnight? Can I spot this happening or do something to avoid it?
H$ = LOCSId$ + ";" + STR$(DATE[1]) + "/" + STR$(DATE[2]) + "/" + STR$(DATE[3]) + " "
H$ = H$ + STR$(TIME[1]) + ":" + STR$(TIME[2]) + ":" + STR$(TIME[3]) + ";"
Occasionally, if the report happens between 00:00 and about 00:30, the day field (DATE[3]) remains the previous day. I haven't been able to characterise this. It certainly is not every report and only some sites.
The segment below is from a log, the site, among 15 others reporting the date as the 13th, reports the 12th. Previous log at midday on the 12th for this site contained the correct date, as did the log before that at 00:00 on the 12th.
;2016/11/12 0:22:47;
Question is, does the day field of the DATE variable take some time to update after midnight? Can I spot this happening or do something to avoid it?