python - Displaying a timedelta object in a django template -
i'm having trouble getting django template display timedelta object consistently. tried using time filter in template, nothing displayed when this. timedelta object shown follows on errors page if use assert false:
time datetime.timedelta(0, 38, 132827)
this displays time difference as:
0:00:38.132827
i show hours, minutes, , seconds each timedelta object. have suggestions on how can this?
i don't think there's built in, , timedeltas don't directly expose hour , minute values. package includes timedelta custom filter tag might help: http://pydoc.net/python/django-timedeltafield/0.6.8/
Comments
Post a Comment