Message182594
| Author |
eric.smith |
| Recipients |
eric.smith, ronaldoussoren |
| Date |
2013年02月21日.14:00:49 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1361455249.29.0.662049308448.issue17267@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
What would this give:
tm = datetime.time(13, 20)
later = tm + datetime.timedelta(hours=47, minutes=44)
datetime.time(13, 4)? Or raise an exception?
I've thought about this before, but it's always a problem when going over date boundaries. If you define "+" to be modulo 24 hours, then it's not very useful for cases I've looked at. Every time I've used time by itself, I end up going back to datetime. But I'll admit that might be a shortcoming of mine, not the concept. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年02月21日 14:00:49 | eric.smith | set | recipients:
+ eric.smith, ronaldoussoren |
| 2013年02月21日 14:00:49 | eric.smith | set | messageid: <1361455249.29.0.662049308448.issue17267@psf.upfronthosting.co.za> |
| 2013年02月21日 14:00:49 | eric.smith | link | issue17267 messages |
| 2013年02月21日 14:00:49 | eric.smith | create |
|