[Org] Add convenience function to format report for a particular day

This commit is contained in:
Daniel - 2017-12-02 21:27:34 +01:00
parent bdf7209032
commit afb474d44c
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 11 additions and 0 deletions

View File

@ -1087,6 +1087,17 @@ When not given, FILES defaults to `org-agenda-files."
(display-buffer target-buffer)
t)))
(defun db/org-format-timeline-of-day (date &optional files)
"Format timeline of given DATE.
DATE should be a string of the form %Y-%m-%d. The timeline will
be formatted for this day, starting at 00:00 and ending at
23:59 (sorry, no leap seconds supported yet). When not given,
FILES defaults to `org-agenda-files."
(interactive "sDate: ")
(db/org-format-timeline (concat date " 00:00")
(concat date " 23:59")
files))
;;; End