#NEWLINE# def _get_business_hours_by_sec( self ) : #NEWLINE# #INDENT# '\n        Return business hours in a day by seconds.\n        ' #NEWLINE# if self . _get_daytime_flag ( ) : #NEWLINE# #INDENT# dtstart = datetime ( 2014 , 4 , 1 , self . start . hour , self . start . minute ) #NEWLINE# until = datetime ( 2014 , 4 , 1 , until . end . hour , self . end . minute ) #NEWLINE# return tslib . tot_seconds ( ( until - dtstart ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . daytime = False #NEWLINE# dtstart = datetime ( 2014 , 4 , 1 , self . start . hour , self . start . minute ) #NEWLINE# until = datetime ( 2014 , 4 , 2 , self . end . hour , self . end . minute ) #NEWLINE# return tslib . tot_seconds ( ( until - dtstart ) )