Description: Julian Date to Gregorian year, month, day, fraction.
The source code for the ANSI C routine Jd2cal is available: