20ce40e9-9fc5-4af7-bdc9-6509a5709919
prompter
In a Linux system how can I find files in certain directory wich modification date is older than 3 minutes but more recent than 24h?
517fb193-99d9-4fcf-8ae8-9ef1f75b4636
20ce40e9-9fc5-4af7-bdc9-6509a5709919
assistant
```python
from datetime import datetime, timedelta
from pathlib import Path
import os
import argparse

parser = argparse.ArgumentParser()
parser.add_argument("path", type=Path)
args = parser.parse_args()

target = args.path

for p in target.glob("**/*"):
    if not p.is_file(): continue
    dt = datetime.now() - datetime.fromtimestamp(os.stat(p).st_mtime)
    if timedelta(minutes=3) <= dt <= timedelta(hours=24):
        print(target / p)
```
707152db-15ed-4a23-af17-d62fa398b994
517fb193-99d9-4fcf-8ae8-9ef1f75b4636
prompter
thank you
a97c03c8-ad41-424a-ab9c-3ff00dd2f805
707152db-15ed-4a23-af17-d62fa398b994
assistant
You're welcome! Is there anything else I can help you with?