#NEWLINE# @ immutable #NEWLINE# def range( self , since = None , until = None , months = 0 , days = 0 ) : #NEWLINE# #INDENT# if ( not ( since or until or days or months ) ) : #NEWLINE# #INDENT# raise ValueError ( ) #NEWLINE# #UNINDENT# if ( not until ) : #NEWLINE# #INDENT# until = datetime . today ( ) #NEWLINE# #UNINDENT# ( since , until ) = utils . date . range ( since , until , months , days ) #NEWLINE# self . meta [ 'since' ] = since #NEWLINE# self . meta [ 'until' ] = until #NEWLINE# self . params [ 'page' ] = True #NEWLINE# self . params [ 'since' ] = utils . date . timestamp ( since , utc = True ) #NEWLINE# self . params [ 'until' ] = utils . date . timestamp ( ( until + timedelta ( days = 1 ) ) , utc = True ) #NEWLINE# return self