def _new_DatetimeIndex(cls, d):
 tz = d.pop('tz', None)
 result = cls.__new__(cls, verify_integrity=False, **d)
 if (tz is not None):
  result = result.tz_localize('UTC').tz_convert(tz)
 return result

def _new_DatetimeIndex ( cls , d ) : tz = d . pop ( 'tz' , None ) result = cls . __new__ ( cls , verify_integrity = False , ** d ) if ( tz is not None ) : result = result . tz_localize ( 'UTC' ) . tz_convert ( tz ) return result
this is called upon unpickling .