[Ironpython-users] timedelta.total_seconds()

Cesar Mello cmello at gmail.com
Fri Mar 2 17:54:54 CET 2012


Hi!

This method doesn't seem to be implemented. From
http://docs.python.org/library/datetime.html :
timedelta.total_seconds()<http://docs.python.org/library/datetime.html#datetime.timedelta.total_seconds>

Return the total number of seconds contained in the duration. Equivalent to
(td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) /10**6 computed
with true division enabled.

Note that for very large time intervals (greater than 270 years on most
platforms) this method will lose microsecond accuracy.

New in version 2.7.

Best regards!
Mello
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120302/031031ee/attachment.html>


More information about the Ironpython-users mailing list