add method get_earliest_time