 
 (defun db/org-clock-lines-of-task (marker)
   "Return list of all clock lines of task under MARKER.
+
 Each clock line is represented as a cons cell (START . END),
 where both START and END are the starting and ending times of the
 corresponding clock lines, encoded as a float denoting the




;;; Reporting

;; All of what follows should be available in org-mode somewhere, but doing it
;; myself was faster and also more fun :)

(defgroup timeline-reporting nil
  "Functionality for formatting timelines."
  :tag "Timeline Formatter"
  :group 'applications)

(require 'dash)

(defun db/org-map-clock-lines-and-entries (clockline-fn headline-fn)
  "Iterate point over all clocklines and headlines of the current buffer.
For each clockline, call CLOCKLINE-FN with the starting and
ending time as arguments and point on the beginning of the line.
For each headline, call HEADLINE-FN with no arguments and point

      task-clock-times)))

(defun db/org-timeline-in-range (tstart tend &optional files)
  "Return list of clocked times between TSTART and TEND from FILES.

Each element in this list is of the form

  (START END MARKER),

