butterhook
asked on
Python script for checking file modification date
Is it possible that someone could help me with a script that will check a file and see if it's modification date is < X days ago, and if so return true?
I seem to be able to get this date about the file from os.stat, but I'm having trouble getting the current time in a suitable format for comparing.
I seem to be able to get this date about the file from os.stat, but I'm having trouble getting the current time in a suitable format for comparing.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
please see here for examples on Python date manipulation
ASKER
Thanks. Immediately usable.