Message212892
[Nick]
> - deprecate aware time() entirely (raises the thorny question of what to return from .time() on an aware datetime() object)
aware_datetime_object.time() already returns a naive time object. The thorny question is what .timetz() should return - but if aware time objects _were_ deprecated, .timetz() itself would presumably be deprecated too.
> ... you can't easily attach a date to the time to calculate a time delta.
The class constructor datetime.combine(date_object, time_object) makes it easy to combine any two date and time objects into a datetime object. |
|
Date |
User |
Action |
Args |
2014-03-07 16:41:29 | tim.peters | set | recipients:
+ tim.peters, lemburg, skip.montanaro, georg.brandl, ncoghlan, belopolsky, pitrou, eric.araujo, alex, r.david.murray, cvrebert, Alexander.Belopolsky, ethan.furman, gwrtheyrn, Lakin.Wecker, yselivanov, shai, dstufft, Andreas.Pelme, Amber.Yust, Hanxue.Lee |
2014-03-07 16:41:29 | tim.peters | set | messageid: <1394210489.83.0.137549369892.issue13936@psf.upfronthosting.co.za> |
2014-03-07 16:41:29 | tim.peters | link | issue13936 messages |
2014-03-07 16:41:29 | tim.peters | create | |
|