I want to change the time delta to an integer value.
My code is as follows.
import datetime
now = datetime.date.today()
print(now.toordinal())
cali_date = datetime.data(2017, 6, 14)
print(cali_date.toordinal())
date1 = now - cali_date
print(date1)
But I want to get only 76with an integer. How can I solve this problem? Thank.
source
share