public static LocalDateTime getDateFromFloatingPointDate ( LocalDateTime referenceDate , double floatingPointDate ) { if ( referenceDate == null ) { return null ; } Duration duration = Duration . ofSeconds ( Math . round ( floatingPointDate * SECONDS_PER_DAY ) ) ; return referenceDate . plus ( duration ) ; }
Convert a floating point date to a LocalDateTime .