[Tutor] comparing dates

Steve Willoughby steve at alchemy.com
Sat Nov 24 06:39:29 CET 2007


Lawrence Shafer wrote:
> How would I compare these two dates and extract the difference in H:M:S??
> 
> 22 Nov 2007 18:54:07
> 23 Nov 2007 23:24:23

Look at the datetime module's timedelta operations.



More information about the Tutor mailing list