Added convert_time_coords function.