def to_perioddelta(self, freq):
        return to_timedelta(self.asi8 - self.to_period(freq)
                            .to_timestamp().asi8)
Parse a ISO 8601 timestamp string
dataset/ETHPy150Open pydata/pandas/pandas/tseries/index.py/DatetimeIndex.to_perioddelta--crossover with--dataset/ETHPy150Open jborg/attic/attic/helpers.py/parse_timestamp