标签:Java

  • java.time.Period minus()方法

    java time Period minus()方法返回此Period的副本,并减去指定的Period。1语法publicPeriodminus(TemporalAmountamountToSubtract)2参数amo

  • java.time.Period isZero()方法

    java time Period isZero()方法检查此Period是否为零长度。1语法publicbooleanisZero()2参数无3返回值如果此Period的总长度等于零,则返回t

  • java.time.Period isNegative()方法

    java time Period instant()方法检查此Period是否为负数,不包括零。1语法publicbooleanisNegative()2参数无3返回值如果此期间的总长度小于

  • java.time.Period hashCode()方法

    java time Period hashCode()方法返回此Period的哈希码。1语法publicinthashCode()2参数无3返回值该方法返回一个合适的哈希码。4示例packag

  • java.time.Period getUnits()方法

    java time Period getUnits()方法获取此Period支持的单位集。1语法publicList<TemporalUnit>getUnits()2参数无3返回值包含秒和纳米单位的列

  • java.time.Period getMonths()方法

    java time Period getMonths()方法获取此Period期间的月数。1语法publicintgetMonths()2参数无3返回值期间长度的一部分,正值或负值。4示例

  • java.time.Period getDays()方法

    java time Period getDays()方法获取此Period期间的天数。1语法publicintgetDays()2参数无3返回值期间长度的一部分,正数或负数。4示例pack

  • java.time.Period getChronology()方法

    java time Period getChronology()方法获取此期间的年表,即ISO日历系统。1语法publicIsoChronologygetChronology()2参数无3返回值ISO年表

  • java.time.Period get()方法

    java time Period get()方法获取所请求单元的值。1语法publiclongget(TemporalUnitunit)2参数unit:要为其返回值的TemporalUnit。3返回值单

  • java.time.Period from()方法

    java time Period from()方法从时间量获取Period的实例。1语法publicstaticPeriodfrom(TemporalAmountamount)2参数amount:要转换的时间量