Improved timedelta attributes/methods

Kushal Kumaran kushal.kumaran+python at gmail.com
Fri Mar 26 03:40:26 EDT 2010


2010/3/26 Christian Ştefănescu <st.chris at 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



More information about the Python-list mailing list