function compareLeapSecondDates(leapSecond, dateToFind) {
  return JulianDate.compare(leapSecond.julianDate, dateToFind);
}
Computes the Earth Orientation Parameters (EOP) for a given date by interpolating.
If the EOP data has not yet been download, this method returns undefined.

@param {JulianDate} date The date for each to evaluate the EOP.
@param {EarthOrientationParametersSample} [result] The instance to which to copy the result.
       If this parameter is undefined, a new instance is created and returned.
@returns {EarthOrientationParametersSample} The EOP evaluated at the given date, or
         undefined if the data necessary to evaluate EOP at the date has not yet been
         downloaded.

@exception {RuntimeError} The loaded EOP data has an error and cannot be used.

@see EarthOrientationParameters#fromUrl