Function: org-id-decode
org-id-decode is a byte-compiled function defined in org-id.el.gz.
Signature
(org-id-decode ID)
Documentation
Split ID into the prefix and the time value that was used to create it.
The return value is (prefix . time) where PREFIX is nil or a string, and TIME is a Lisp time value (HI LO USEC).
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-id.el.gz
(defun org-id-decode (id)
"Split ID into the prefix and the time value that was used to create it.
The return value is (prefix . time) where PREFIX is nil or a string,
and TIME is a Lisp time value (HI LO USEC)."
(let (prefix time parts)
(setq parts (org-split-string id ":"))
(if (= 2 (length parts))
(setq prefix (car parts) time (nth 1 parts))
(setq prefix nil time (nth 0 parts)))
(setq time (org-reverse-string time))
(setq time (list (org-id-b36-to-int (substring time 0 4))
(org-id-b36-to-int (substring time 4 8))
(org-id-b36-to-int (substring time 8 12))))
(cons prefix time)))