Function: calcFunc-bsub
calcFunc-bsub is an autoloaded and byte-compiled function defined in
calc-forms.el.gz.
Signature
(calcFunc-bsub A B)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-forms.el.gz
(defun calcFunc-bsub (a b)
(or (eq (car-safe a) 'date)
(math-reject-arg a 'datep))
(if (eq (car-safe b) 'date)
(if (math-lessp (nth 1 a) (nth 1 b))
(math-neg (calcFunc-bsub b a))
(math-setup-holidays b)
(let* ((da (math-to-business-day a))
(db (math-to-business-day b)))
(math-add (math-sub (car da) (car db))
(if (and (cdr db) (not (cdr da))) 1 0))))
(calcFunc-badd a (math-neg b))))