How to find out a date/time difference

SaskMan jscrerar at compuserve.com
Wed May 24 10:21:27 EDT 2006


Convert datetime.datetime(2006, 5, 24, 16, 1, 26) to an ordinal number
like:
datetime.datetime(2006, 5, 24, 16, 1, 26).toordinal()
and subtract them to get number of days.




More information about the Python-list mailing list