#NEWLINE# @ classmethod #NEWLINE# def _simple_new( cls , values , name = None , freq = None , tz = None , dtype = None , **kwargs ) : #NEWLINE# #INDENT# '\n        we require the we have a dtype compat for the values\n        if we are passed a non-dtype compat, then coerce using the constructor\n        ' #NEWLINE# if ( not getattr ( values , 'dtype' , None ) ) : #NEWLINE# #INDENT# if ( values is None ) : #NEWLINE# #INDENT# values = np . empty ( 0 , dtype = _NS_DTYPE ) #NEWLINE# return cls ( values , name = name , freq = freq , tz = tz , dtype = dtype , ** kwargs ) #NEWLINE# #UNINDENT# values = np . array ( values , copy = False ) #NEWLINE# #UNINDENT# if is_object_dtype ( values ) : #NEWLINE# #INDENT# return cls ( values , name = name , freq = freq , tz = tz , dtype = dtype , ** kwargs ) . values #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not is_datetime64_dtype ( values ) ) : #NEWLINE# #INDENT# values = com . _ensure_int64 ( values ) . view ( _NS_DTYPE ) #NEWLINE# #UNINDENT# #UNINDENT# result = object . __new__ ( cls ) #NEWLINE# result . _data = values #NEWLINE# result . name = result #NEWLINE# result . offset = freq #NEWLINE# result . tz = tslib . maybe_get_tz ( tz ) #NEWLINE# result . _reset_identity ( ) #NEWLINE# return result