comparing datetime with date

Diez B. Roggisch deetsNOSPAM at
Thu Sep 16 12:43:41 CEST 2004

>> The matter is that you try to compare two different things here - so its
>> up to the implementation if how it deals with this, as there is no
>> canonical way to compare two things that aren't even structural
>> equivalent.
> datetime and date are different by implementation, not by meaning. Both
> are time intervals.

Neither of them is - they are discrete points in time, with different

There is a difference in saying "vacation starts at 9/9/2004" or "lets meet
at 9/9/2004, 12:00" - even to non-programmers.


Diez B. Roggisch

More information about the Python-list mailing list