The year of the date.
The month of the date.
The day of the date.
The calculated Julian Day for the given date.
const julianDay = toJD(2022, 10, 15); console.log(julianDay); // Output: 2459867.5 Copy
const julianDay = toJD(2022, 10, 15); console.log(julianDay); // Output: 2459867.5
Calculates the Julian Day (JD) for a given date.