java time Year minusMonths(longmonthsToSubtract)方法返回此YearMonth的副本,并减去指定的月份。1语法publicYearMonthminusMonths(longm
java time Year minus(TemporalAmountamountToSubtract)方法返回此YearMonth的副本,并减去指定的YearMonth。1语法publicYearMonthminus(Te
java time Year minus(longamountToSubtract,TemporalUnitunit)方法返回今年的副本,并减去指定的数量。1语法publicYearMonthminus(longam
java time Year lengthOfYear()方法返回年份的长度(总天数)。1语法publicintlengthOfYear()2参数无3返回值如果年份是闰年,则返回366,否则
java time Year lengthOfMonth()方法返回月份的长度,并考虑年份。1语法publicintlengthOfMonth()2参数无3返回值以天为单位的月份长度,从2
java time Year isValidDay(intdayOfMonth)方法检查每月的日期是否有效。1语法publicbooleanisValidDay(intdayOfMonth)2参数dayOfMonth:要
java time Year isSupported(TemporalUnitunit)方法检查是否支持指定的单元。1语法publicbooleanisSupported(TemporalUnitunit)2参数unit:
java time Year isSupported(TemporalFieldfield)方法检查是否支持指定的字段。1语法publicbooleanisSupported(TemporalFieldfield)2参数fi
java time Year isLeap()方法检查年份是否为闰年。1语法publicstaticbooleanisLeap(intyear)2参数year:检查是否为闰年。3返回值如果年份是
java time Year isLeapYear()方法检查年份是否为闰年。1语法publicbooleanisLeapYear()2参数无3返回值如果年份是闰年则返回为true,否则为f