Function: math-absolute-from-dt

math-absolute-from-dt is a byte-compiled function defined in calc-forms.el.gz.

Signature

(math-absolute-from-dt YEAR MONTH DAY)

Documentation

Return the DATE of the day given by the day YEAR MONTH DAY.

Recall that DATE is the number of days since December 31, -1 in the Gregorian calendar.

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-forms.el.gz
(defun math-absolute-from-dt (year month day)
  "Return the DATE of the day given by the day YEAR MONTH DAY.
Recall that DATE is the number of days since December 31, -1
in the Gregorian calendar."
  (if (and calc-gregorian-switch
           ;; The next few lines determine if the given date
           ;; occurs before the switch to the Gregorian calendar.
           (math-dt-before-p (list year month day) calc-gregorian-switch))
      (math-absolute-from-julian-dt year month day)
    (math-absolute-from-gregorian-dt year month day)))