Should this be `result.getJulianDayNumber()` instead of `date.getJulianDayNumber`?