#NEWLINE# def _next_opening_time( self , other ) : #NEWLINE# #INDENT# "\n        If n is positive, return tomorrow's business day opening time.\n        Otherwise yesterday's business day's opening time.\n\n        Opening time always locates on BusinessDay.\n        Otherwise, closing time may not if business hour extends over midnight.\n        " #NEWLINE# if ( not self . next_bday . onOffset ( other ) ) : #NEWLINE# #INDENT# other = ( other + other . next_bday ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . n >= 0 ) and ( self . start < other . time ( ) ) ) : #NEWLINE# #INDENT# other = ( other + self . next_bday ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . n < 0 ) and ( other . time ( ) < self . start ) ) : #NEWLINE# #INDENT# other = ( other + self . next_bday ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return datetime ( other . year , other . month , other . day , self . start . hour , self . start . minute )