def do(self, value=None, unit=None):
        if not unit:
            v = self.millisecond(value=value)
        elif unit.lower() in ['millisecond', 'milliseconds', 'ms']:
            v = self.millisecond(value=value)
        elif ['second', 'seconds', 's'] in unit.lower():
            v = self.second(value=value)
        elif unit.lower() in ['minute', 'minutes', 'm']:
            v = self.minute(value=value)
        elif unit.lower() in ['hour', 'hours', 'h']:
            v = self.hour(value=value)
        elif unit.lower() in ['day', 'days', 'd']:
            v = self.day(value=value)
        elif unit.lower() in ['year', 'years', 'y']:
            v = self.year(value=value)
        elif unit.lower() in ['microsecond', 'microseconds', 'us']:
            v = self.microsecond(value=value)
        elif unit.lower() in ['nanosecond', 'nanoseconds', 'ns']:
            v = self.nanosecond(value=value)
        else:
            raise NotImplementedError("unit %s" % unit)

        return v
dataset/ETHPy150Open BrightcoveOS/Diamond/src/diamond/convertor.py/time.do/swapped operands of `in`