utils.py
branchstable
changeset 4000 4b16a7c01a25
parent 3902 a0efb0326021
child 4012 f6c65e04704c
child 4212 ab6573088b4a
--- a/utils.py	Fri Dec 04 19:45:19 2009 +0100
+++ b/utils.py	Fri Dec 04 19:45:32 2009 +0100
@@ -410,7 +410,7 @@
             elif isinstance(obj, pydatetime.time):
                 return obj.strftime('%H:%M:%S')
             elif isinstance(obj, pydatetime.timedelta):
-                return '%10d.%s' % (obj.days, obj.seconds)
+                return (obj.days * 24 * 60 * 60) + obj.seconds
             elif isinstance(obj, decimal.Decimal):
                 return float(obj)
             try: