def hash_timestamp(afile):
 md5hex = None
 if os.path.isfile(afile):
  md5obj = md5()
  stat = os.stat(afile)
  md5obj.update(str(stat.st_size).encode())
  md5obj.update(str(stat.st_mtime).encode())
  md5hex = md5obj.hexdigest()
 return md5hex

def hash_timestamp ( afile ) : md5hex = None if os . path . isfile ( afile ) : md5obj = md5 ( ) stat = os . stat ( afile ) md5obj . update ( str ( stat . st_size ) . encode ( ) ) md5obj . update ( str ( stat . st_mtime ) . encode ( ) ) md5hex = md5obj . hexdigest ( ) return md5hex
computes md5 hash of the timestamp of a file .