#NEWLINE# def __init__( self , unit , tz = None ) : #NEWLINE# #INDENT# "\n        Parameters\n        ----------\n        unit : string unit that this represents, currently must be 'ns'\n        tz : string tz that this represents\n        " #NEWLINE# if isinstance ( unit , DatetimeTZDtype ) : #NEWLINE# #INDENT# ( self . unit , self . tz ) = ( unit . unit , unit . tz ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( tz is None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# m = self . _match . search ( unit ) #NEWLINE# if ( m is not None ) : #NEWLINE# #INDENT# self . unit = m . groupdict ( ) [ 'unit' ] #NEWLINE# self . tz = m . groupdict ( ) [ 'tz' ] #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# raise ValueError ( 'could not construct DatetimeTZDtype' ) #NEWLINE# #UNINDENT# raise ValueError ( 'DatetimeTZDtype constructor must have a tz supplied' ) #NEWLINE# #UNINDENT# if ( unit != 'ns' ) : #NEWLINE# #INDENT# raise ValueError ( 'DatetimeTZDtype only supports ns units' ) #NEWLINE# #UNINDENT# self . unit = unit #NEWLINE# self . tz = tz