From: Kushal Kumaran on 26 Mar 2010 03:40 2010/3/26 Christian ÅtefÄnescu <st.chris(a)gmail.com>: > Hello dear Python-wielding developers! > > I generally like date/time handling in Python very much, especially how date > operations result in Timedelta objects. But I find it somewhat impractical, > that you can only get days, seconds and microseconds out of a time delta. I > think it would be much more comfortable to have fields for minutes, hours, > maybe also years, months. Is there a specific reasoning why this is not > available? > > I would gladly do my best to implement such a solution, if it would make > sense to the devs. > You might want to check out mxDateTime[1]. It has a RelativeDateTime that seems to do what you like. [1] http://www.egenix.com/products/python/mxBase/mxDateTime/doc/ -- regards, kushal
|
Pages: 1 Prev: Question regarding curses and text-input methods Next: Have you embraced Python 3.x yet? |