Improved timedelta attributes/methods

Christian Ştefănescu st.chris at gmail.com
Thu Mar 25 20:51:48 CET 2010


Hello dear Python-wielding developers!

I generally like date/time handling in Python very much, especially how date
operations result in Timedelta
objects<http://docs.python.org/library/datetime.html#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.

Regards,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100325/c6365206/attachment.html>


More information about the Python-list mailing list