Function: calc-hms-notation
calc-hms-notation is an autoloaded, interactive and byte-compiled
function defined in calc-forms.el.gz.
Signature
(calc-hms-notation FMT)
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-forms.el.gz
(defun calc-hms-notation (fmt)
(interactive "sHours-minutes-seconds format (hms, @ ' \", etc.): ")
(calc-wrapper
(if (string-match "\\`\\([^,; ]+\\)\\([,; ]*\\)\\([^,; ]\\)\\([,; ]*\\)\\([^,; ]\\)\\'" fmt)
(progn
(calc-change-mode 'calc-hms-format
(concat "%s" (math-match-substring fmt 1)
(math-match-substring fmt 2)
"%s" (math-match-substring fmt 3)
(math-match-substring fmt 4)
"%s" (math-match-substring fmt 5))
t)
(setq-default calc-hms-format calc-hms-format)) ; for minibuffer
(error "Bad hours-minutes-seconds format"))))