code: function(name, timezone) {
        if (name instanceof ICAL.Component) {
          if (name.name === 'vtimezone') {
            timezone = new ICAL.Timezone(name);
            name = timezone.tzid;
          }
        }
  
        if (timezone instanceof ICAL.Timezone) {
          zones[name] = timezone;
        } else {
          throw new TypeError('timezone must be ICAL.Timezone or ICAL.Component');
        }
      }
docs: Registers a timezone object or component.
  
  @param {String=} name
  The name of the timezone. Defaults to the component's TZID if not
  passed.
  @param {ICAL.Component|ICAL.Timezone} zone
  The initialized zone or vtimezone.