When I execute ll
command I get the timestamps:
-rw-rw-r--+ 1 4167 May 5 17:19 file A
-rw-rw-r--+ 1 2721 May 4 17:08 file B
I want the difference between timestamps of A and B
I tried this:
datetime.fromtimestamp(getmtime(file)).strftime('%h %m %s'))
It gives
May 05 1557032395
May 04 1557084082
Please help me get the time difference