Skip to main content
`Ctrl`+`K`

# pandas.DatetimeIndex.to_julian_date

DatetimeIndex.to_julian_date()

  Convert Timestamp to a Julian Date.

  This method returns the number of days as a float since noon January 1, 4713 BC.

  https://en.wikipedia.org/wiki/Julian_day

  Returns:
    ndarray or Index

      Float values that represent each date in Julian Calendar.

  See also

  `Timestamp.to_julian_date`

    Equivalent method on `Timestamp` objects.

  Examples

      >>> idx = pd.DatetimeIndex(["2028-08-12 00:54", "2028-08-12 02:06"])
      >>> idx.to_julian_date()
      Index([2461995.5375, 2461995.5875], dtype='float64')