Function: math-get-calendar-tzinfo

math-get-calendar-tzinfo is a byte-compiled function defined in calc-forms.el.gz.

Signature

(math-get-calendar-tzinfo)

Documentation

Get information about the timezone from the calendar.

The result should be a list of two items about the current time zone: first, the number of seconds difference from GMT second, the number of seconds offset for daylight savings.

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-forms.el.gz
(defun math-get-calendar-tzinfo ()
  "Get information about the timezone from the calendar.
The result should be a list of two items about the current time zone:
first, the number of seconds difference from GMT
second, the number of seconds offset for daylight savings."
  (if math-calendar-tzinfo
      math-calendar-tzinfo
    (require 'cal-dst)
    (let ((tzinfo (calendar-current-time-zone)))
      (setq math-calendar-tzinfo
            (list (* 60 (- (nth 0 tzinfo)))
                  (* 60 (nth 1 tzinfo)))))))