// -------------------------------------------------------------------------
 @Override
 public double relativeTime(ZonedDateTime dateTime) {
   ArgChecker.notNull(dateTime, "dateTime");
   LocalDate valuationDate = valuationDateTime.toLocalDate();
   LocalDate date = dateTime.toLocalDate();
   return dayCount.relativeYearFraction(valuationDate, date);
 }
 // -------------------------------------------------------------------------
 @Override
 public double relativeTime(ZonedDateTime zonedDateTime) {
   ArgChecker.notNull(zonedDateTime, "date");
   return dayCount.relativeYearFraction(
       valuationDateTime.toLocalDate(), zonedDateTime.toLocalDate());
 }