pandas.Timestamp.to_julian_date#
- Timestamp.to_julian_date()#
Convert TimeStamp to a Julian Date.
This method returns the number of days as a float since 0 Julian date, which is noon January 1, 4713 BC.
See also
Timestamp.toordinalReturn proleptic Gregorian ordinal.
Timestamp.timestampReturn POSIX timestamp as float.
TimestampRepresents a single timestamp.
Examples
>>> ts = pd.Timestamp('2020-03-14T15:32:52') >>> ts.to_julian_date() 2458923.147824074