Movatterモバイル変換
[0]ホーム
[Python-ideas] Additional datetime-like module
Lennart Regebroregebro at gmail.com
Wed Jul 29 05:40:40 CEST 2015
On Tue, Jul 28, 2015 at 10:10 PM, Mike Miller <python-ideas at mgmiller.net> wrote:> (Apologies, I've gotten a bit lost in the recent PEP-431 discussion on -dev.> To recap, it concerns changing datetime to use UTC internally.)>> When doing datetime calculations, I read two major use cases, one I'll call> "simple" (aka naive), and the other "robust", that comes into play when> multiple users, zones, dst, leaps, and/or calendar requirements surface.I agree with that, but I don't see a problem with having them in thesame module. In my opinion you should get the simple case when youdon't have time zone information added to your datetime objects, andthe robust calculations when you do. The only problem from where Istand is that today's robust calculations are incorrect.> As a non-expert-in-the-area developer, I can say that it is difficult to> look at the docs of datetime (and time) and know which approach to choose.Documentation could probably be better.../Lennart
More information about the Python-ideasmailing list
[8]ページ先頭