Function: org-format-timestamp

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

Signature

(org-format-timestamp TIMESTAMP FORMAT &optional END UTC)

Documentation

Format a TIMESTAMP object into a string.

FORMAT is a format specifier to be passed to format-time-string.

When optional argument END is non-nil, use end of date-range or time-range, if possible.

When optional argument UTC is non-nil, time is be expressed as Universal Time.

Aliases

org-timestamp-format (obsolete since Org 9.6)

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-format-timestamp (timestamp format &optional end utc)
  "Format a TIMESTAMP object into a string.

FORMAT is a format specifier to be passed to
`format-time-string'.

When optional argument END is non-nil, use end of date-range or
time-range, if possible.

When optional argument UTC is non-nil, time is be expressed as
Universal Time."
  (format-time-string format (org-timestamp-to-time timestamp end)
		      (and utc t)))