def get_last_modified(files):
 files = list(files)
 if files:
  return max((datetime.datetime.fromtimestamp(os.path.getmtime(f)) for f in files))
 return datetime.datetime(1970, 1, 1)

def get_last_modified ( files ) : files = list ( files ) if files : return max ( ( datetime . datetime . fromtimestamp ( os . path . getmtime ( f ) ) for f in files ) ) return datetime . datetime ( 1970 , 1 , 1 )
returns the modification time of the most recently modified file provided .