os.path.getmtime()

os.path.getmtime(filename)[source]

Return the last modification time of a file, reported by os.stat().