Skip to content
Advertisement

How to get the latest file update in last six hours in a folder using python

I am trying to write a python program lists the files updated/created in last six hour using python.

Advertisement

Answer

This will give you what you want, although you might want to be careful with timezone offset values –

JavaScript

Hope this helps.

Advertisement