Extract timestamps