def set_datetime_hint(self, format, nextpos, rollover):
    self._datetime_format = format
    self._datetime_nextpos = nextpos
    self._year_rollover = rollover
    if format.startswith('ctime'):
        if ((len(self.split_tokens) < 4) or (self.split_tokens[(self._datetime_nextpos - 4)] not in self.weekdays)):
            _ = self.datetime
            return False
        return True
    else:
        if (len(self.split_tokens) == 0):
            self._datetime_calculated = True
            return False
        try:
            if (not self.split_tokens[(self._datetime_nextpos - 1)][0].isdigit()):
                _ = self.datetime
                return False
        except Exception:
            pass
        return True
def set_datetime_hint(self, format, nextpos, rollover):
    self._datetime_format = format
    self._datetime_nextpos = nextpos
    self._year_rollover = rollover
    if format.startswith('ctime'):
        if ((len(self.split_tokens) < 4) or (self.split_tokens[(self._datetime_nextpos - 4)] not in self.weekdays)):
            _ = self.datetime
            return False
        return True
    else:
        if (len(self.split_tokens) == 0):
            self._datetime_calculated = True
            return False
        try:
            if (not self.split_tokens[(self._datetime_nextpos - 1)][0].isdigit()):
                _ = self.datetime
                return False
        except Exception:
            pass
        return True