On Sat, Jul 06, 2024 at 12:38:47PM -0800, Christopher Howard wrote: > Hi, I want to make an Emacs timer that runs a command once a week, every Tuesday at 4am. I could do this with run-at-time and a relative time, but I would need to calculate how many seconds until Tuesday 4am. Is there an easy way to calcuate that? (time-subtract (date-to-time "2024-11-13T10:22:00+0100") (current-time)) Note that Emacs's internal time representation is "abstract" -- you shouldn't rely too much on its details. But you have a set of functions to operate on it and to move from/to human readable representations. See all the chapters on time in Elisp's "System Interface" section, especially "42.8 Parsing and Formatting Times" and "42.10 Time Calculations". Cheers -- t