comparing datetime with date

Diez B. Roggisch deetsNOSPAM at web.de
Thu Sep 16 06:43:41 EDT 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
resolution.

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.

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list