You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this command to print a time stamp in the same form as org-mode. Too short for a PR. It would be nice to have a key to easily add or substract days to the printed timestamp. And then, an interactive day picker of course.
<2023-07-05 Wed>
(defvar*time-stamp-format*;; Equals Emacs org-mode's default format.'("<":year"-" (:month2) "-" (:day2) "":short-weekday">")
"Time-stamp format. By default, prints year, month, day, and short english day: \"<2023-07-05 Wed>\"")
(defunformat-time-stamp (&key (day (local-time:now)) (streamnil))
(local-time:format-timestring stream day :format*time-stamp-format*))
(define-command time-stamp () ()
"Print a timestamp of today, in the form <2042-12-01 Mon>."
(insert-string (current-point) (format-time-stamp :streamt)))
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I got this command to print a time stamp in the same form as org-mode. Too short for a PR. It would be nice to have a key to easily add or substract days to the printed timestamp. And then, an interactive day picker of course.
Beta Was this translation helpful? Give feedback.
All reactions