def __determine_before_str(options):
 now = datetime.datetime.now()
 today = datetime.datetime(now.year, now.month, now.day)
 day_offset = options.age
 before_str = ((today - datetime.timedelta(day_offset)).isoformat() if (day_offset is not None) else None)
 return before_str

def __determine_before_str ( options ) : now = datetime . datetime . now ( ) today = datetime . datetime ( now . year , now . month , now . day ) day_offset = options . age before_str = ( ( today - datetime . timedelta ( day_offset ) ) . isoformat ( ) if ( day_offset is not None ) else None ) return before_str
determine the date string for the newest timestamp to filter by .