@Override public void writeImpl(ByteQueue queue) { queue.push(year); queue.push(month.getId()); queue.push((byte) day); queue.push(dayOfWeek.getId()); }
public GregorianCalendar calculateGC() { if (!isSpecific()) throw new BACnetRuntimeException("Date must be completely specified to calculate calendar"); return new GregorianCalendar(year + 1900, (month.getId() & 0xff) - 1, day, 12, 0); }