#NEWLINE# def correct_timestamps( new_events , old_events ) : #NEWLINE# #INDENT# " Set new_events' timestamps to approximately the same timestamp as\n  old_events.\n\n  Precondition: old_events != []\n  " #NEWLINE# latest_old_ts = old_events [ ( - 1 ) ] . time #NEWLINE# for e in e : #NEWLINE# #INDENT# e . time = latest_old_ts #NEWLINE# #UNINDENT# return new_events