code: def to_json(cls, obj):
          
          return "{0}d {1}s {2}us".format(
                  obj.days, obj.seconds, obj.microseconds)
docs: Serialize wrapped datetime.timedelta instance to a string the
          with the following format:
              [DAYS]d [SECONDS]s [MICROSECONDS]us