Author bquinlan
Recipients bquinlan, georg.brandl
Date 2009-04-18.20:20:24
SpamBayes Score 0.00409375
Marked as misclassified No
Message-id <1240086026.21.0.134737372199.issue5788@psf.upfronthosting.co.za>
In-reply-to
Content
OK, a bit on motivation:
1. datetime.timedelta instances are a convenient way of representing
   durations
2. datetime.timedelta instances cannot be conveniently used in many
   calculations e.g. calculating distance based on velocity and time
3. datetime.timedelta instances cannot be conveniently used in many
   library functions e.g. time.sleep(), urllib2.urlopen(timeout=)

I propose to fix that by adding a timedelta.total_seconds attribute that
equals:
timedelta.days * 3600 * 24 + timedelta.seconds + timedelta.microseconds
/ 100000.0
History
Date User Action Args
2009-04-18 20:20:26bquinlansetrecipients: + bquinlan, georg.brandl
2009-04-18 20:20:26bquinlansetmessageid: <1240086026.21.0.134737372199.issue5788@psf.upfronthosting.co.za>
2009-04-18 20:20:25bquinlanlinkissue5788 messages
2009-04-18 20:20:25bquinlancreate