Message86138
| Author |
bquinlan |
| Recipients |
bquinlan, georg.brandl |
| Date |
2009年04月18日.20:20:24 |
| SpamBayes Score |
0.004093748 |
| 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: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 |
|