#NEWLINE# def _set_human_times( results ) : #NEWLINE# #INDENT# now = datetime . datetime . now ( ) #NEWLINE# for r in results : #NEWLINE# #INDENT# date_created = datetime . datetime . fromtimestamp ( float ( r [ 'dateCreated' ] ) ) #NEWLINE# date_modified = datetime . datetime . fromtimestamp ( float ( r [ 'dateModified' ] ) ) #NEWLINE# since_modified = ( now - date_modified ) #NEWLINE# since_created = ( now - date_created ) #NEWLINE# _set_human_times_since ( r , 'Modified' , since_modified ) #NEWLINE# _set_human_times_since ( r , 'Created' , since_created ) #NEWLINE# r [ 'humanDateModified' ] = str ( date_modified ) #NEWLINE# r [ 'humanDateCreated' ] = str ( date_created )