Message86138
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 |
|
Date |
User |
Action |
Args |
2009-04-18 20:20:26 | bquinlan | set | recipients:
+ bquinlan, georg.brandl |
2009-04-18 20:20:26 | bquinlan | set | messageid: <1240086026.21.0.134737372199.issue5788@psf.upfronthosting.co.za> |
2009-04-18 20:20:25 | bquinlan | link | issue5788 messages |
2009-04-18 20:20:25 | bquinlan | create | |
|