met with some problem in getting started on this.. Currently my project receives data from serial port. But the data received looks like this
Time >>>>>>>Unit no.
10:40:17:08 16 26.7
10:40:17:10 16 26.7
10:40:17:23 16 26.7
All these data received upon real time.
How should i modify the Datetime.Now coding to show the data like this..
8:40:17:08 16 26.7
9:40:17:10 16 26.7
10:40:17:23 16 26.7
meaning that only the last received data will be of the real time timing, the remaining data with the common "seconds" should have their hour being push back accordingly.
I roughly understand that i should add this "DateTime.Now.AddHours(-1)" only
EDITED
The system should know that if it received thrice same number (16) data, the timing of those 3 number16 data should change accordingly.. So how should i compare the data received?
if (number = 3times)
{edit the time}
else
{record as usual}