#NEWLINE# def _prev_opening_time( self , other ) : #NEWLINE# #INDENT# "\n        If n is positive, return yesterday's business day opening time.\n        Otherwise yesterday business day's opening time.\n        " #NEWLINE# if ( not self . next_bday . onOffset ( other ) ) : #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# 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 )