start_date = datetime(2010, 4, 28, 12, 33)
end_date = datetime(2010, 5, 5, 23, 14)
difference_in_years = date_as_float(end_time) - date_as_float(start_time)
Pythonic difference between two dates in years?