/** * Sets the seconds field for this date/time type, including fractional seconds. (In this * implementation, fractional seconds are limited to milliseconds and are truncated at millseconds * if more precision is provided.) * * @param second the second to set * @param millsecond the millisecond to set * @throws UnsupportedOperationException this exception is thrown when changing the value of the * second field is not allowed */ public void setSecond(short second, short millsecond) throws UnsupportedOperationException { setSecond(second); setMilliSecond(millsecond); }
/** * Sets the seconds field for this date/time type, including fractional * seconds. (In this implementation, fractional seconds are limited * to milliseconds and are truncated at millseconds if more precision * is provided.) * * @param second * the second to set * @param millsecond * the millisecond to set * @throws UnsupportedOperationException * this exception is thrown when changing the value of the * second field is not allowed */ public void setSecond(short second,short millsecond) throws UnsupportedOperationException { setSecond(second); setMilliSecond(millsecond); }
powerOfTen = 1000; result.setMilliSecond((short)decimalValue);
powerOfTen = 1000; result.setMilliSecond((short) decimalValue);
temp = _millsecond + sign * (int) duration.getMilli(); carry = fQuotient(temp, 1000); this.setMilliSecond((short) modulo(temp, 1000));
temp = _millsecond + sign * (int)duration.getMilli(); carry = fQuotient(temp, 1000); this.setMilliSecond((short)modulo(temp, 1000));