#NEWLINE# def replace( self , year = None , month = None , day = None , hour = None , minute = None , second = None , microsecond = None , tzinfo = None ) : #NEWLINE# #INDENT# if ( tzinfo != None ) : #NEWLINE# #INDENT# raise NotImplementedError ( 'tzinfo' ) #NEWLINE# #UNINDENT# if ( year is None ) : #NEWLINE# #INDENT# year = self . year #NEWLINE# #UNINDENT# if ( month is None ) : #NEWLINE# #INDENT# month = self . month #NEWLINE# #UNINDENT# if ( day is None ) : #NEWLINE# #INDENT# day = self . day #NEWLINE# #UNINDENT# if ( hour is None ) : #NEWLINE# #INDENT# hour = self . hour #NEWLINE# #UNINDENT# if ( minute is None ) : #NEWLINE# #INDENT# minute = self . minute #NEWLINE# #UNINDENT# if ( second is None ) : #NEWLINE# #INDENT# second = self . second #NEWLINE# #UNINDENT# if ( microsecond is None ) : #NEWLINE# #INDENT# microsecond = self . microsecond #NEWLINE# #UNINDENT# return datetime ( year , month , day , hour , minute , second , microsecond )