class PackedLocalDate {

  public static int withYear(int year, int packedDate) {
    byte day = getDayOfMonth(packedDate);
    byte month = getMonthValue(packedDate);
    short _year = (short) year;
    return pack(_year, month, day);
  }

}