标签:Java

  • java.time.Period withDays()方法

    java time Period withDays(intdays)方法返回具有指定天数的此Period的副本。1语法publicPeriodwithDays(intdays)2参数days:代表的日子,

  • java.time.Period toTotalMonths()方法

    java time Period toTotalMonths()方法获取此期间的总月数。1语法publiclongtoTotalMonths()2参数无3返回值期间的总月数,可能是负数。4示

  • java.time.Period toString()方法

    java time Period toString()方法使用基于ISO-8601秒的表示形式获取此Period的字符串表示形式,例如P6Y3M1D。1语法publicStringtoString()2

  • java.time.Period subtractFrom()方法

    java time Period subtractFrom(Temporaltemporal)方法从指定的时态对象中减去此Period。1语法publicTemporalsubtractFrom(Temporaltempora

  • java.time.Period plusYears()方法

    java time Period plusYears(longyears)方法返回此Period的副本,并添加指定的Period年份。1语法publicPeriodplusYears(longyears)2参数yea

  • java.time.Period plusMonths()方法

    java time Period plusMonths(longmonths)方法返回此Period的副本,并添加指定的Period。1语法publicPeriodplusMonths(longmonths)2参数mon

  • java.time.Period plusDays()方法

    java time Period plusDays(longdaysToAdd)方法返回此Period的副本,其中添加了标准24小时的指定Period。1语法publicPeriodplusDays(longda

  • java.time.Period plus()方法

    java time Period plus(TemporalAmountamountToAdd)方法返回此Period的副本,并添加了指定的Period。1语法publicPeriodplus(TemporalAmount

  • java.time.Period parse()方法

    java time Period parse(CharSequencetext)方法从文本字符串(例如PnYnMnD和PnW)获取Period。1语法publicstaticPeriodparse(CharSequencetex

  • java.time.Period ofYears()方法

    java time Period ofYears(intyears)方法获取表示年数的Period。1语法publicstaticPeriodofYears(intyears)2参数year:年数,正或负值。3返