code: public static double getFloatingPointDateFromDate(LocalDateTime referenceDate, LocalDateTime date) {
  		Duration duration = Duration.between(referenceDate, date);
  		return ((double)duration.getSeconds()) / SECONDS_PER_DAY;
  	}
docs: Convert a given date to a floating point date using a given reference date.
  
  @param referenceDate The reference date associated with \( t=0 \).
  @param date The given date to be associated with the return value \( T \).
  @return The value T measuring the distance of reference date and date by ACT/365 with SECONDS_PER_DAY seconds used as the smallest time unit and SECONDS_PER_DAY is a constant 365*24*60*60.