time-to-days

time-to-days is an autoloaded compiled Lisp function in `time-date.el'.

(time-to-days TIME)

The number of days between the Gregorian date 0001-12-31bce and TIME.
TIME should be a time value.
The Gregorian date Sunday, December 31, 1bce is imaginary.