[issue1673409] datetime module missing some important methods

Chris AtLee report at bugs.python.org
Fri Nov 30 21:50:13 CET 2007


Chris AtLee added the comment:

I keep needing to know the number of seconds that a timedelta represents,
so I implemented the following patch.

This returns only the integer portion, but could be modified to return a
floating point value.

----------
nosy: +catlee
Added file: http://bugs.python.org/file8837/timedelta.diff

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1673409>
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timedelta.diff
Type: text/x-patch
Size: 2426 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071130/0a11126d/attachment.bin 


More information about the Python-bugs-list mailing list