Function: diary-icalendar-current-tz-to-vtimezone

diary-icalendar-current-tz-to-vtimezone is a byte-compiled function defined in diary-icalendar.el.gz.

Signature

(diary-icalendar-current-tz-to-vtimezone &optional TZ TZID START-YEAR)

Documentation

Convert TZ to an icalendar-vtimezone.

See icalendar-recur-current-tz-to-vtimezone for arguments' meanings. This function wraps that one, but signals icalendar-diary-export-error instead if TZ cannot be converted.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/diary-icalendar.el.gz
;;; Time zone handling during export:

(defun di:current-tz-to-vtimezone (&optional tz tzid start-year)
  "Convert TZ to an `icalendar-vtimezone'.

See `icalendar-recur-current-tz-to-vtimezone' for arguments' meanings.
This function wraps that one, but signals `icalendar-diary-export-error'
instead if TZ cannot be converted."
  (condition-case _
      (icr:current-tz-to-vtimezone tz tzid start-year)
    ((ical:tz-insufficient-data ical:tz-unsupported)
     (di:signal-export-error
      (format "Unable to export time zone data: %s.\n%s." tz
              "Check the value of `diary-icalendar-time-zone-export-strategy'")))))