I was curious about the signatures on com.opengamma.financial.convention.daycount.Daycount, why dont they use LocalDate, for example,
double getDayCountFraction(final ZonedDateTime firstDate, final ZonedDateTime secondDate);
I wonder why it is not
double getDayCountFraction(final LocalDate firstDate, final LocalDate secondDate);
Is there ever a case where ZonedDateTime is needed in the calculation of a daycount fraction? In each implementation i can see, LocalDate is all that is needed, and i cannot think of a daycount which would need anything else?
I did wonder if you had in mind some idea to calculate time to expiry of a option, where the timezone and time of day would be important, and yet one might want to specify BU/252 or ACT/360 as the basis for the vols.