• Parameters

    • year: number

      The year of the date.

    • month: number

      The month of the date.

    • day: number

      The day of the date.

    Returns number

    The calculated Julian Day for the given date.

    Example

    const julianDay = toJD(2022, 10, 15);
    console.log(julianDay); // Output: 2459867.5