Function: calcFunc-hms
calcFunc-hms is an autoloaded and byte-compiled function defined in
calc-forms.el.gz.
Signature
(calcFunc-hms H &optional M S)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-forms.el.gz
(defun calcFunc-hms (h &optional m s)
(or (Math-realp h) (math-reject-arg h 'realp))
(or m (setq m 0))
(or (Math-realp m) (math-reject-arg m 'realp))
(or s (setq s 0))
(or (Math-realp s) (math-reject-arg s 'realp))
(if (and (not (Math-lessp m 0)) (Math-lessp m 60)
(not (Math-lessp s 0)) (Math-lessp s 60))
(math-add (math-to-hms h)
(list 'hms 0 m s))
(math-to-hms (math-add h
(math-add (math-div (or m 0) 60)
(math-div (or s 0) 3600)))
'deg)))