#NEWLINE# def _onOffset( self , dt , businesshours ) : #NEWLINE# #INDENT# '\n        Slight speedups using calcurated values\n        ' #NEWLINE# if ( self . n >= 0 ) : #NEWLINE# #INDENT# op = self . _prev_opening_time ( dt ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# op = self . _next_opening_time ( dt ) #NEWLINE# #UNINDENT# span = tslib . tot_seconds ( ( dt - op ) ) #NEWLINE# if ( span <= businesshours ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False