code: private void unpackRules(byte[] rules)
      {
          startDay       = rules[0];
          startDayOfWeek = rules[1];
          endDay         = rules[2];
          endDayOfWeek   = rules[3];
  
          // As of serial version 2, include time modes
          if (rules.length >= 6) {
              startTimeMode = rules[4];
              endTimeMode   = rules[5];
          }
      }
docs: Given an array of bytes produced by packRules, interpret them
  as the start and end rules.