branch | stable |
changeset 3902 | a0efb0326021 |
parent 3882 | addc715f4fcd |
child 3998 | 94cc7cad3d2d |
child 4000 | 4b16a7c01a25 |
--- a/utils.py Mon Nov 23 16:18:13 2009 +0100 +++ b/utils.py Mon Nov 23 17:13:48 2009 +0100 @@ -409,6 +409,8 @@ return obj.strftime('%Y/%m/%d') elif isinstance(obj, pydatetime.time): return obj.strftime('%H:%M:%S') + elif isinstance(obj, pydatetime.timedelta): + return '%10d.%s' % (obj.days, obj.seconds) elif isinstance(obj, decimal.Decimal): return float(obj) try: