changeset 3998 | 94cc7cad3d2d |
parent 3890 | d7a270f50f54 |
parent 3902 | a0efb0326021 |
child 4012 | f6c65e04704c |
--- a/utils.py Mon Nov 23 14:13:53 2009 +0100 +++ b/utils.py Thu Dec 03 17:17:43 2009 +0100 @@ -410,6 +410,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: