Function: org-make-tdiff-string
org-make-tdiff-string is a byte-compiled function defined in
org.el.gz.
Signature
(org-make-tdiff-string Y D H M)
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-make-tdiff-string (y d h m)
(let ((fmt "")
(l nil))
(when (> y 0)
(setq fmt (concat fmt "%d year" (if (> y 1) "s" "") " "))
(push y l))
(when (> d 0)
(setq fmt (concat fmt "%d day" (if (> d 1) "s" "") " "))
(push d l))
(when (> h 0)
(setq fmt (concat fmt "%d hour" (if (> h 1) "s" "") " "))
(push h l))
(when (> m 0)
(setq fmt (concat fmt "%d minute" (if (> m 1) "s" "") " "))
(push m l))
(apply 'format fmt (nreverse l))))