@staticmethod
    def _strpt(dt_string):
        if isinstance(dt_string, datetime):
            return dt_string
        if dt_string[-5] == '-' or dt_string[-5] == '+':
            offset_str = dt_string[-5:]
            dt_string = dt_string[:-5]
            offset = int(offset_str[-4:-2]) * 60 + int(offset_str[-2:])
            if offset_str[0] == "-":
                offset = -offset
        else:
            offset = 0

        return datetime.strptime(dt_string, "%Y-%m-%dT%H:%M:%S").replace(tzinfo=FixedOffset(offset))
Returns a list of Rawdocuments (metadata)
dataset/ETHPy150Open MediaMath/t1-python/terminalone/entity.py/Entity._strpt--crossover with--dataset/ETHPy150Open CenterForOpenScience/scrapi/scrapi/harvesters/lwbin.py/LWBINHarvester.harvest