
report at bugs
Jul 10, 2008, 11:35 AM
Post #1 of 1
(61 views)
Permalink
|
|
[issue1673409] datetime module missing some important methods
|
|
Erik Stephens <python[at]24ksoftware.com> added the comment: I'm not sure this is still being considered, so I just wanted to add my opinion. This seems like such a simple request being made overly complicated. We just want seconds since epoch since that is used in many other functions and libraries (i.e. the time module, os.stat().st_mtime). Why is there toordinal()?!? If there is going to be any toxxx() methods, there should definitely be a tosecs()/totimestamp() method or an 'epoch/timestamp' attribute. For boundary cases, I would look to the std time module for guidance. ---------- nosy: +erik.stephens _______________________________________ Python tracker <report[at]bugs.python.org> <http://bugs.python.org/issue1673409> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|