2010/3/26 Christian Ştefănescu <st.ch...@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 -- http://mail.python.org/mailman/listinfo/python-list