This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | skip.montanaro |
|---|---|
| Recipients | josh-sf, skip.montanaro |
| Date | 2007年09月02日.03:13:11 |
| SpamBayes Score | 0.001529277 |
| Marked as misclassified | No |
| Message-id | <1188702792.96.0.658091358917.issue1118748@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
This has come up and been rejected because there are so many end cases. Here's an item from a thread I believe you started on comp.lang.python: http://mail.python.org/pipermail/python-list/2005-January/303023.html If you want to add time and timedelta objects, use datetime objects and extract their times. The behavior is well-defined. >>> t = datetime.time(11, 47, 00) >>> td = datetime.timedelta(0, 40000, 1234) >>> dt = datetime.datetime.now().replace(hour=t.hour, minute=t.minute, second=t.second) >>> dt datetime.datetime(2007, 9, 1, 11, 47, 0, 147616) >>> for i in range(1, 10): ... print (dt + i * td).time() ... 22:53:40.148850 10:00:20.150084 21:07:00.151318 08:13:40.152552 19:20:20.153786 06:27:00.155020 17:33:40.156254 04:40:20.157488 15:47:00.158722 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年09月02日 03:13:13 | skip.montanaro | set | spambayes_score: 0.00152928 -> 0.001529277 recipients: + skip.montanaro, josh-sf |
| 2007年09月02日 03:13:12 | skip.montanaro | set | spambayes_score: 0.00152928 -> 0.00152928 messageid: <1188702792.96.0.658091358917.issue1118748@psf.upfronthosting.co.za> |
| 2007年09月02日 03:13:12 | skip.montanaro | link | issue1118748 messages |
| 2007年09月02日 03:13:11 | skip.montanaro | create | |