As I consume a lot of drugs, I created an org-mode file that updates the status of my stock every day. It is done at the start of Emacs and it slows down significantly. As I sometimes run Emacs on a single day, I would like a test to see if the file has been updated in the current day.
(defun file-updated-today-p (file) .....)