/** * Normalizes the date by carrying over to the year any months outside 1..12 * and carrying over to the month any days outside 1..(days-in-month). */ private void _normalizeDate() { if (_M < 1 || _M > 12 || _D < 1 || _D > _maxDayInMonthFor(_CY, _M)) { // fix months first int temp = _M; _M = _modulo(temp, 1, 13); _CY = _CY + (int)_fQuotient(temp, 1, 13); // then pull days out int extradays = _D - 1; _D = 1; // then use the julian date function to fix setJulianDate(getJulianDate() + extradays); } }
temp = _maxDayInMonthFor(_CY, _M); if (_D > temp) _D = temp;
date.hasMonth() && (date.hasYear() ? date.getDay() > _maxDayInMonthFor((date.getYear() > 0 ? date.getYear() : date.getYear() + 1),
/** * Normalizes the date by carrying over to the year any months outside 1..12 * and carrying over to the month any days outside 1..(days-in-month). */ private void _normalizeDate() { if (_M < 1 || _M > 12 || _D < 1 || _D > _maxDayInMonthFor(_CY, _M)) { // fix months first int temp = _M; _M = _modulo(temp, 1, 13); _CY = _CY + (int)_fQuotient(temp, 1, 13); // then pull days out int extradays = _D - 1; _D = 1; // then use the julian date function to fix setJulianDate(getJulianDate() + extradays); } }
/** * Normalizes the date by carrying over to the year any months outside 1..12 * and carrying over to the month any days outside 1..(days-in-month). */ private void _normalizeDate() { if (_M < 1 || _M > 12 || _D < 1 || _D > _maxDayInMonthFor(_CY, _M)) { // fix months first int temp = _M; _M = _modulo(temp, 1, 13); _CY = _CY + (int)_fQuotient(temp, 1, 13); // then pull days out int extradays = _D - 1; _D = 1; // then use the julian date function to fix setJulianDate(getJulianDate() + extradays); } }
temp = _maxDayInMonthFor(_CY, _M); if (_D > temp) _D = temp;
temp = _maxDayInMonthFor(_CY, _M); if (_D > temp) _D = temp;
date.hasMonth() && (date.hasYear() ? date.getDay() > _maxDayInMonthFor((date.getYear() > 0 ? date.getYear() : date.getYear() + 1),
date.hasMonth() && (date.hasYear() ? date.getDay() > _maxDayInMonthFor((date.getYear() > 0 ? date.getYear() : date.getYear() + 1),