Re: [Tutor] comparing dates

2007-11-23 Thread Chris Calloway
On Nov 24, 2007, at 12:27 AM, Lawrence Shafer wrote: How would I compare these two dates and extract the difference in H:M:S?? http://docs.python.org/lib/module-datetime.html http://docs.python.org/lib/datetime-timedelta.html 22 Nov 2007 18:54:07 23 Nov 2007 23:24:23 >>> import datetime >>

Re: [Tutor] comparing dates

2007-11-23 Thread Shantanoo Mahajan
On 24-Nov-07, at 10:57 AM, 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 You can try, 'datetime' module. 'http://pleac.sourceforge.net/pleac_python/datesandtimes.html' may be useful. regar

Re: [Tutor] comparing dates

2007-11-23 Thread Steve Willoughby
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. ___ Tutor maillist - Tutor@python.org http://mail.p

[Tutor] comparing dates

2007-11-23 Thread Lawrence Shafer
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 Cheers, Lawrence ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor