Message75754
| Author |
belopolsky |
| Recipients |
belopolsky, brett.cannon, catlee, erik.stephens, guettli, jribbens, lemburg, skip.montanaro, steve.roberts, tim.peters, tomster, vstinner |
| Date |
2008年11月11日.18:29:45 |
| SpamBayes Score |
0.0003081753 |
| Marked as misclassified |
No |
| Message-id |
<1226428186.53.0.79783349869.issue1673409@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Chris> I keep needing to know the number of seconds that a timedelta
Chris> represents.
I propose an alternative approach that I believe will neatly solve
fractional vs. whole seconds and multitude of conceivable toxxx methods:
Let's extend timedelta's div and floordiv methods to allow
>>> (t - epoch) // timedelta(seconds=1)
--> whole seconds
and
>>> (t - epoch) / timedelta(seconds=1)
--> fractional seconds |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年11月11日 18:29:46 | belopolsky | set | recipients:
+ belopolsky, lemburg, tim.peters, skip.montanaro, brett.cannon, jribbens, guettli, catlee, vstinner, tomster, erik.stephens, steve.roberts |
| 2008年11月11日 18:29:46 | belopolsky | set | messageid: <1226428186.53.0.79783349869.issue1673409@psf.upfronthosting.co.za> |
| 2008年11月11日 18:29:45 | belopolsky | link | issue1673409 messages |
| 2008年11月11日 18:29:45 | belopolsky | create |
|