Second, is the middle block where ruby-ole reimplements the julian date calculation.
The reason this is faster than letting the standard library do it is that this uses Float instead of Rational to store the astronomical julian date.