This is maybe not the most convenient way but you can create a variable LastRecordTime=hist_1_timeThen when LastRecordTime-hist_1_time<0 you have a new record