#NEWLINE# def check_days_since( self , case , now ) : #NEWLINE# #INDENT# date_to_check = self . get_case_value ( case ) #NEWLINE# if ( ( not isinstance ( date_to_check , date ) ) and isinstance ( date_to_check , basestring ) and ALLOWED_DATE_REGEX . match ( date_to_check ) ) : #NEWLINE# #INDENT# date_to_check = parse ( date_to_check ) #NEWLINE# #UNINDENT# if ( not isinstance ( date_to_check , date ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( not isinstance ( date_to_check , datetime ) ) : #NEWLINE# #INDENT# date_to_check = datetime . combine ( date_to_check , time ( 0 , 0 ) ) #NEWLINE# #UNINDENT# days = int ( self . property_value ) #NEWLINE# return ( date_to_check <= ( now - timedelta ( days = self ) ) )