public static void dealWithAmPm(Stella_Object formValue, DecodedDateTime parsedValues) {
    { int hour = parsedValues.dateTimeHour;

      if (formValue == Stella.SYM_STELLA_AM) {
        if (hour == 12) {
          parsedValues.dateTimeHour = 0;
        }
        else if (!((0 <= hour) &&
            (hour <= 12))) {
          if (((Boolean)(Stella.$ERROR_ON_MISMATCH$.get())).booleanValue()) {
            { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

              stream000.nativeStream.print("`" + hour + "' is not an AM hour.");
              throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
            }
          }
        }
      }
      else if (formValue == Stella.SYM_STELLA_PM) {
        if ((0 <= hour) &&
            (hour <= 11)) {
          parsedValues.dateTimeHour = hour + 12;
        }
      }
      else {
        { OutputStringStream stream001 = OutputStringStream.newOutputStringStream();

          stream001.nativeStream.print("`" + formValue + "'isn't AM/PM - this shouldn't happen.");
          throw ((StellaException)(StellaException.newStellaException(stream001.theStringReader()).fillInStackTrace()));
        }
      }
    }
  }