added the function that can locate a timestamp into two or three files