[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Improved timedelta attributes/methods

Kushal Kumaran

3/26/2010 7:40:00 AM

2010/3/26 Christian Stefanescu <st.chris@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/mxDat...

--
regards,
kushal