Variable: seconds-to-string-readable

seconds-to-string-readable is a variable defined in compat-31.el.

Value

(("Y" "year" "years" 31556952)
 ("M" "month" "months" 2629746)
 ("w" "week" "weeks" 604800)
 ("d" "day" "days" 86400)
 ("h" "hour" "hours" 3600)
 ("m" "minute" "minutes" 60)
 ("s" "second" "seconds" 1))

Documentation

[Compatibility variable for seconds-to-string-readable, defined in Emacs
31.0.50. See (compat) Emacs 31.0.50' for more details.]

Formatting used by the function seconds-to-string(var)/seconds-to-string(fun) with READABLE set. The format is an alist, with string keys ABBREV-UNIT, and elements like:

  (ABBREV-UNIT UNIT UNIT-PLURAL SECS)

where UNIT is a unit of time, ABBREV-UNIT is the abbreviated form of UNIT, UNIT-PLURAL is the plural form of UNIT, and SECS is the number of seconds per UNIT.

Source Code

;; Defined in ~/.emacs.d/elpa/compat-31.0.0.2/compat-31.el
(compat-defvar seconds-to-string-readable ;; <compat-tests:seconds-to-string>
  `(("Y" "year"   "years"   ,(round (* 60 60 24 365.2425)))
    ("M" "month"  "months"  ,(round (* 60 60 24 30.436875)))
    ("w" "week"   "weeks"   ,(* 60 60 24 7))
    ("d" "day"    "days"    ,(* 60 60 24))
    ("h" "hour"   "hours"   ,(* 60 60))
    ("m" "minute" "minutes" 60)
    ("s" "second" "seconds" 1))
  "Formatting used by the function `seconds-to-string' with READABLE set.
The format is an alist, with string keys ABBREV-UNIT, and elements like:

  (ABBREV-UNIT UNIT UNIT-PLURAL SECS)

where UNIT is a unit of time, ABBREV-UNIT is the abbreviated form of
UNIT, UNIT-PLURAL is the plural form of UNIT, and SECS is the number of
seconds per UNIT.")