I have a unit which sends text data + timestamp every 20 minutes. In case the text data is long the unit split it into some messages with close time stamps but not always exactly the same (few second difference). in that case, I need to update the timestamps for all bulk to the first time stamp of the bulk.
There is guaranty that time difference between last message of bulk and first message of the next bulk is at least 15 minutes.
example:
For this messages which were got:
2017/11/08 10:00:01 A
2017/11/08 10:00:02 B
2017/11/08 10:00:16 C
2017/11/08 10:00:22 D
2017/11/08 10:20:01 E
2017/11/08 10:20:10 F
2017/11/08 10:21:16 G
2017/11/08 10:21:22 H
I need have the following time stamps:
2017/11/08 10:00:01 A
2017/11/08 10:00:01 B
2017/11/08 10:00:01 C
2017/11/08 10:00:01 D
2017/11/08 10:20:01 E
2017/11/08 10:20:01 F
2017/11/08 10:20:01 G
2017/11/08 10:20:01 H
How to do it?