How to see if file is older than 3 months in Python?
Question: I'm curious about manipulating time in Python. I can get the (last modified)
age of a file using the `os.path.getmtime()` function as such:

    
    
    import os.path, time    
    
    os.path.getmtime(oldLoc)
    

I need to run some kind of test to see whether this time is within the last
three months or not, but I'm thoroughly confused by all the available time
options in Python.

Can anyone offer any insight? Kind Regards.


Answer: 
    time.time() - os.path.getmtime(oldLoc) > (3 * 30 * 24 * 60 * 60)
    

