to compare the previous date and the last accessed date of a file for updation in python code example
Example: python get last modification time of file
import os
time = os.path.getmtime("file.txt")
print(time) # 1600113737.82
import os
time = os.path.getmtime("file.txt")
print(time) # 1600113737.82