Function: org-timestamp-from-string

org-timestamp-from-string is a byte-compiled function defined in org.el.gz.

Signature

(org-timestamp-from-string S)

Documentation

Convert Org timestamp S, as a string, into a timestamp object.

Return nil if S is not a valid timestamp string.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
;;; Timestamps API

;; This section contains tools to operate on, or create, timestamp
;; objects, as returned by, e.g. `org-element-context'.

(defun org-timestamp-from-string (s)
  "Convert Org timestamp S, as a string, into a timestamp object.
Return nil if S is not a valid timestamp string."
  (when (org-string-nw-p s)
    (with-temp-buffer
      (save-excursion (insert s))
      (org-element-timestamp-parser))))