Function: org-timestamp-to-time
org-timestamp-to-time is a byte-compiled function defined in
org.el.gz.
Signature
(org-timestamp-to-time TIMESTAMP &optional END)
Documentation
Convert TIMESTAMP object into an Emacs internal time value.
Use end of date range or time range when END is non-nil. Otherwise, use its start.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-timestamp-to-time (timestamp &optional end)
"Convert TIMESTAMP object into an Emacs internal time value.
Use end of date range or time range when END is non-nil.
Otherwise, use its start."
(org-encode-time
(append '(0)
(mapcar
(lambda (prop) (or (org-element-property prop timestamp) 0))
(if end '(:minute-end :hour-end :day-end :month-end :year-end)
'(:minute-start :hour-start :day-start :month-start
:year-start)))
'(nil -1 nil))))