def getTickTock(self, vals):
        '''
        Get a tick, tock time pair.

        Args:
            vals (list): A pair of values to norm.

        Returns:
            (int, int): A ordered pair of integers.
        '''
        val0, val1 = vals

        try:
            _tick = self._getLiftValu(val0)
        except ValueError as e:
            raise s_exc.BadTypeValu(name=self.name, valu=val0,
                                    mesg='Unable to process the value for val0 in getTickTock.')

        sortval = False
        if isinstance(val1, str):
            if val1.startswith(('+-', '-+')):
                sortval = True
                delt = s_time.delta(val1[2:])
                # order matters
                _tock = _tick + delt
                _tick = _tick - delt
            elif val1.startswith('-'):
                sortval = True
                _tock = self._getLiftValu(val1, relto=_tick)
            else:
                _tock = self._getLiftValu(val1, relto=_tick)
        else:
            _tock = self._getLiftValu(val1, relto=_tick)

        if sortval and _tick >= _tock:
            tick = min(_tick, _tock)
            tock = max(_tick, _tock)
            return tick, tock

        return _tick, _tock
def getTickTock ( self , vals ) : val0 , val1 = vals try : _tick = self . _getLiftValu ( val0 ) except ValueError as e : raise s_exc . BadTypeValu ( name = self . name , valu = val0 , mesg = 'Unable to process the value for val0 in getTickTock.' ) sortval = False if isinstance ( val1 , str ) : if val1 . startswith ( ( '+-' , '-+' ) ) : sortval = True delt = s_time . delta ( val1 [ 2 : ] ) _tock = _tick + delt _tick = _tick - delt elif val1 . startswith ( '-' ) : sortval = True _tock = self . _getLiftValu ( val1 , relto = _tick ) else : _tock = self . _getLiftValu ( val1 , relto = _tick ) else : _tock = self . _getLiftValu ( val1 , relto = _tick ) if sortval and _tick >= _tock : tick = min ( _tick , _tock ) tock = max ( _tick , _tock ) return tick , tock return _tick , _tock
Get a tick, tock time pair.

        Args:
            vals (list): A pair of values to norm.

        Returns:
            (int, int): A ordered pair of integers.