hej,

i just noticed, that although org-element properly parses the repeating
information of an active-range :type timestamp, it is not able to
interpret it again (unless the :raw-value is still present, of course).

minimal working example below:

* ❢ Tagesschau
<2013-01-15 Tue 20:00 +1d>--<2013-01-15 Tue 20:15 +1d>

* Parsing
#+name: timestamp
#+begin_src emacs-lisp
(org-element-put-property
 (org-element-put-property
  (org-element-map (org-element-parse-buffer) 'timestamp 'identity nil t)
  :parent nil)   ; so we don't clutter the output uselessly
 :raw-value nil) ; with raw-value it works, trivially
#+end_src

#+RESULTS: timestamp
| timestamp | (:type active-range :raw-value nil :year-start 2013 :month-start 1 :day-start 15 :hour-start 20 :minute-start 0 :year-end 2013 :month-end 1 :day-end 15 :hour-end 20 :minute-end 15 :begin 17 :end 71 :post-blank 0 :repeater-type cumulate :repeater-value 1 :repeater-unit day :parent nil) |

* Interpreting
#+begin_src emacs-lisp :var elem=timestamp
(org-element-interpret-data elem)
#+end_src

#+RESULTS:
: <2013-01-15 Tue 20:00>--<2013-01-15 Tue 20:15>

cheers,
jonas

Reply via email to