I currently use the following to get a list of agenda files for org-mode:
(setq org-agenda-files (directory-files-recursively "~/Org" "\\.org$"))
I'd like to instead get a list of files that are newer than 7 days old so that Emacs doesn't spend a long time reading and parsing all the org files I have.
I know I have to write a
defun that takes in a directory and file regex as its 2 parameters, but I'm at a loss with how to then find files newer than 7 days.