#NEWLINE# def col_clause( self ) : #NEWLINE# #INDENT# clause_parts = [ ] #NEWLINE# subvals = [ ] #NEWLINE# if self . interval . start : #NEWLINE# #INDENT# clause_parts . append ( self . _clause_tmpl . format ( subvals . field , '>=' ) ) #NEWLINE# subvals . append ( _to_epoch_time ( self . interval . start ) ) #NEWLINE# #UNINDENT# if self . interval . end : #NEWLINE# #INDENT# clause_parts . append ( self . _clause_tmpl . format ( self . field , '<' ) ) #NEWLINE# subvals . append ( _to_epoch_time ( self . interval . end ) ) #NEWLINE# #UNINDENT# if clause_parts : #NEWLINE# #INDENT# clause = ' AND ' . join ( clause_parts ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# clause = '1' #NEWLINE# #UNINDENT# return ( clause , subvals )