java time Instant minus(longamountToSubtract,TemporalUnitunit)方法返回此瞬间的副本,并减去指定的数量。1语法publicInstantminus(lon
java time Instant isSupported(TemporalFieldfield)方法检查是否支持指定的字段。1语法publicbooleanisSupported(TemporalFieldfield)2参
java time Instant isBefore(InstantotherInstant)方法检查此瞬间是否在指定的时刻之前。1语法publicbooleanisBefore(InstantotherInstant)
java time Instant isAfter(InstantotherInstant)方法检查此瞬间是否在指定的时刻之后。1语法publicbooleanisAfter(InstantotherInstant)2
java time Instant hashCode()方法返回此瞬间的哈希码。1语法publicinthashCode()2参数无3返回值该方法返回合适的哈希码。4示例packagecom
java time Instant getNano()方法从第二个开始的时间线获取纳米秒数。1语法publicintgetNano()2参数无3返回值第二个纳秒,总是正数,永远不
java time Instant getLong(TemporalFieldfield)方法从此瞬间获取指定字段的值。1语法publiclonggetLong(TemporalFieldfield)2参数field:
java time Instant getEpochSecond()方法获取1970-01-01T00:00:00Z的Java纪元的秒数。1语法publiclonggetEpochSecond()2参数无3返回值197
java time Instant get(TemporalFieldfield)方法从此瞬间获取指定字段的值作为int。1语法publicintget(TemporalFieldfield)2参数field:要
java time Instant from(TemporalAccessortemporal)方法从时态对象获取Instant的实例。1语法publicstaticInstantfrom(TemporalAccessortemp