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
java time Instant equals(ObjectotherInstant)方法检查此瞬间是否等于指定的时刻。1语法publicbooleanequals(ObjectotherInstant)2参数oth
java time Instant compareTo(InstantotherInstant)方法将此瞬间与指定的瞬间进行比较。1语法publicintcompareTo(InstantotherInstant)2参
java time Instant atZone(ZoneIdzone)方法将此瞬间与时区组合以创建ZonedDateTime。1语法publicZonedDateTimeatZone(ZoneIdzone)2参数zone
java time Instant atOffset(ZoneOffsetoffset)方法将此瞬间与偏移量组合在一起以创建OffsetDateTime。1语法publicOffsetDateTimeatOffset(
java time Instant adjustInto(Temporaltemporal)方法调整指定的时态对象以获得此瞬间。1语法publicTemporaladjustInto(Temporaltemporal)2