def __call__(self, value):

        if value is None:
            return None

        try:
            p = value.split(':', 2)
            _60 = Duration._60
            _unsigned = Duration._unsigned
            if len(p) == 1:
                result = _unsigned(p[0])
            if len(p) == 2:
                result = 60 * _unsigned(p[0]) + _60(p[1])
            if len(p) == 3:
                result = 3600 * _unsigned(p[0]) + 60 * _60(p[1]) + _60(p[2])
        except __HOLE__:
            raise ValueError("Invalid duration value: %s", value)

        return result
dataset/ETHPy150Open splunk/splunk-app-twitter/twitter2/bin/splunklib/searchcommands/validators.py/Duration.__call__