Message212786
Nick wrote:
> any deprecation warning should explain how to convert
> a time object to "seconds since midnight".
I would like to see such an explanation regardless of the outcome here.
The best I can think of is
timedelta(hours=t.hour, minutes=t.minute, seconds=t.second, microseconds=t.microsecond).total_seconds()
which is only a marginal improvement over
(t.hour*60 + t.minute)*60 + t.second + 1e-6*t.microsecond
See also #17267. |
|
Date |
User |
Action |
Args |
2014-03-06 01:42:46 | belopolsky | set | recipients:
+ belopolsky, lemburg, tim.peters, georg.brandl, ncoghlan, eric.araujo, r.david.murray, cvrebert, gwrtheyrn, Lakin.Wecker, yselivanov, shai, dstufft, Andreas.Pelme, Amber.Yust |
2014-03-06 01:42:46 | belopolsky | set | messageid: <1394070166.61.0.158345972367.issue13936@psf.upfronthosting.co.za> |
2014-03-06 01:42:46 | belopolsky | link | issue13936 messages |
2014-03-06 01:42:45 | belopolsky | create | |
|