Celestine API Documentation - v0.2.0
    Preparing search index...

    Function julianDate

    • Create a Julian Date from individual components

      Convenience function for creating JD without constructing a CalendarDateTime object.

      Parameters

      • year: number

        Full year

      • month: number

        Month (1-12)

      • day: number

        Day of month

      • hour: number = 0

        Hour (0-23), defaults to 0

      • minute: number = 0

        Minute (0-59), defaults to 0

      • second: number = 0

        Second (0-59.999...), defaults to 0

      Returns number

      Julian Date

      julianDate(2000, 1, 1, 12, 0, 0)  // J2000.0 epoch
      // Returns: 2451545.0