Function: time-stamp-zone-type-p

time-stamp-zone-type-p is an autoloaded and byte-compiled function defined in time-stamp.el.gz.

Signature

(time-stamp-zone-type-p ZONE)

Documentation

Return non-nil if ZONE is of the correct type for a timezone rule.

Valid ZONE values are described in the documentation of format-time-string.

Source Code

;; Defined in /usr/src/emacs/lisp/time-stamp.el.gz
;;;###autoload(put 'time-stamp-time-zone 'safe-local-variable 'time-stamp-zone-type-p)


;;;###autoload
(defun time-stamp-zone-type-p (zone)
  "Return non-nil if ZONE is of the correct type for a timezone rule.
Valid ZONE values are described in the documentation of `format-time-string'."
  (or (memq zone '(nil t wall))
      (stringp zone)
      (and (consp zone)
           (integerp (car zone))
           (consp (cdr zone))
           (stringp (cadr zone)))
      (integerp zone)))