java time Period parse(CharSequencetext)方法从文本字符串(例如PnYnMnD和PnW)获取Period。1语法publicstaticPeriodparse(CharSequencetex
java time Period ofYears(intyears)方法获取表示年数的Period。1语法publicstaticPeriodofYears(intyears)2参数year:年数,正或负值。3返
java time Period ofWeeks(intweeks)方法获取表示周数的Period。1语法publicstaticPeriodofWeeks(intweeks)2参数weeks:周数,正或负值。3
java time Period ofMonths(intmonths)方法获取表示月数的Period。1语法publicstaticPeriodofMonths(intmonths)2参数months:月数,正数或
java time Period ofDays(intdays)方法获取表示多个标准24小时天数的Period。1语法publicstaticPeriodofDays(intdays)2参数days:天数,正
java time Period of(intyears,intmonths,intdays)方法获取表示指定单位中总数的Period。1语法publicstaticPeriodof(intyears,intmonths,
java time Period normalized()方法返回此期间的副本,其中年份和月份已标准化。1语法publicPeriodnormalized()2参数无3返回值一个基于此Pe
java time Period negated()方法返回此Period的副本,其长度为negated。1语法publicPeriodnegated()2参数无3返回值一个基于此Period的Perio
java time Period multipliedBy(longmultiplicand)方法返回此Period的副本乘以标量。1语法publicPeriodmultipliedBy(longmultiplicand)2参
java time Period minusYears(longyearsToSubtract)方法返回此Period的副本,并减去指定的年份。1语法publicPeriodminusYears(longyearsToS