@classmethod
    def _validate(cls, value):
        value, offset = cls.get_offset(value)
        tz = cls.get_tzinfo(offset)
        try:
            return cls._parse(value).replace(tzinfo=tz)
        except __HOLE__:
            mo = re.search('\\.\d+$', value)
            if not mo:
                raise
            ms = mo.group(0)
            value = value.replace(ms, '')
            return cls._parse(value, cls.format).\
                replace(tzinfo=tz, microsecond=int(ms[1:].ljust(6, '0')))
dataset/ETHPy150Open stepank/pyws/src/pyws/functions/args/types/simple.py/DateTime._validate