/src/main/java/net/finmath/time/FloatingpointDate.java
final Duration duration = Duration.ofSeconds ( Math.round ( floatingPointDate * SECONDS_PER_DAY ) ) ; return referenceDate.plus ( duration ) ;
private FloatingpointDate() { } public static LocalDateTime getDateFromFloatingPointDate(final LocalDateTime referenceDate, final double floatingPointDate) { if(referenceDate == null) { return null; } <extra_id_0> } public static double getFloatingPointDateFromDate(final LocalDateTime referenceDate, final LocalDateTime date) { final Duration duration = Duration.between(referenceDate, date); return ((double)duration.getSeconds()) / SECONDS_PER_DAY; } public static LocalDate getDateFromFloatingPointDate(final LocalDate referenceDate, final double floatingPointDate) {