textlib.py: provide zero value for timedelta

Change-Id: I40822ea6074e1a4b3a2a0fffd0cbcc3598ef1760