Function: org-attach-id-ts-folder-format

org-attach-id-ts-folder-format is a byte-compiled function defined in org-attach.el.gz.

Signature

(org-attach-id-ts-folder-format ID)

Documentation

Translate an ID based on a timestamp to a folder-path.

Useful way of translation if ID is generated based on ISO8601 timestamp. Splits the attachment folder hierarchy into year-month, the rest.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-attach.el.gz
(defun org-attach-id-ts-folder-format (id)
  "Translate an ID based on a timestamp to a folder-path.
Useful way of translation if ID is generated based on ISO8601
timestamp.  Splits the attachment folder hierarchy into
year-month, the rest."
  (and (< 6 (length id))
       (format "%s/%s"
               (substring id 0 6)
               (substring id 6))))