os.path.getmtime()

Returns the time of the modification time of a file.

In [1]: import os.path

In [2]: os.path.getmtime( 'hellowWorld.lis')
Out[2]: 1713535805.0