Skip to content

Instantly share code, notes, and snippets.

@kriyative
Created July 6, 2011 18:21
Show Gist options
  • Save kriyative/1067943 to your computer and use it in GitHub Desktop.
Save kriyative/1067943 to your computer and use it in GitHub Desktop.
Displaying a daily Org-mode agenda reminder in Emacs 2
(defun parse-relative-time (time-str)
(destructuring-bind (sec min hour day month year dow dst zone)
(parse-time-string time-str)
(destructuring-bind (sec1 min1 hour1 day1 month1 year1 dow1 dst1 zone1)
(decode-time)
(encode-time (or sec sec1)
(or min min1)
(or hour hour1)
(or day day1)
(or month month1)
(or year year1)
(or zone zone1)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment