def to_time(self, s):
        try:
            dt = parse(s)
        except (__HOLE__, TypeError) as e:
            raise ApiFieldError(str(e))
        else:
            return datetime.time(dt.hour, dt.minute, dt.second, dt.microsecond)
dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/fields.py/TimeField.to_time