Uses of Class
java.time.Instant
-
Packages that use Instant 软件包 描述 java.lang 提供对Java编程语言设计至关重要的类。java.nio.file.attribute 提供访问文件和文件系统属性的接口和类。java.sql 提供使用Java编程语言访问和处理存储在数据源(通常是关系数据库)中的数据的API。java.time 日期,时间,瞬间和持续时间的主要API。java.time.chrono 除默认ISO之外的日历系统的通用API。java.time.zone 支持时区及其规则。java.util 包含集合框架,一些国际化支持类,一个服务加载器,属性,随机数生成,字符串解析和扫描类,base64编码和解码,一个位数组和几个其他实用程序类。java.util.logging 提供Java¢2平台核心日志记录工具的类和接口。 -
-
Uses of Instant in java.lang
Methods in java.lang that return types with arguments of type Instant Modifier and Type 方法 描述 Optional<Instant>ProcessHandle.Info. startInstant()返回进程的开始时间。 -
Uses of Instant in java.nio.file.attribute
Methods in java.nio.file.attribute that return Instant Modifier and Type 方法 描述 InstantFileTime. toInstant()将此FileTime对象转换为Instant。Methods in java.nio.file.attribute with parameters of type Instant Modifier and Type 方法 描述 static FileTimeFileTime. from(Instant instant)返回一个FileTime表示与所提供的Instant对象相同的时间点值。 -
Uses of Instant in java.sql
Methods in java.sql that return Instant Modifier and Type 方法 描述 InstantDate. toInstant()此方法总是引发UnsupportedOperationException,因为SQLDate值没有时间组件,所以不应该使用它。InstantTime. toInstant()此方法总是引发UnsupportedOperationException,因为SQLTime值没有日期组件,所以不应该使用它。InstantTimestamp. toInstant()将此Timestamp对象转换为Instant。Methods in java.sql with parameters of type Instant Modifier and Type 方法 描述 static TimestampTimestamp. from(Instant instant)从Instant对象获取Timestamp的实例。 -
Uses of Instant in java.time
Fields in java.time declared as Instant Modifier and Type Field 描述 static InstantInstant. EPOCH常数为1970-01-01T00:00:00Z时代瞬间。static InstantInstant. MAX最大支持Instant,'1000000000-12-31T23:59:59.999999999Z'。static InstantInstant. MIN最低支持Instant,'-1000000000-01-01T00:00Z'。Methods in java.time that return Instant Modifier and Type 方法 描述 static InstantInstant. from(TemporalAccessor temporal)从时间对象获取一个Instant的实例。abstract InstantClock. instant()获取当前的时钟瞬间。InstantInstant. minus(long amountToSubtract, TemporalUnit unit)返回此时刻的副本,减去指定的金额。InstantInstant. minus(TemporalAmount amountToSubtract)返回此时刻的副本,减去指定的金额。InstantInstant. minusMillis(long millisToSubtract)以毫秒为单位的指定持续时间返回此瞬间的副本。InstantInstant. minusNanos(long nanosToSubtract)以纳秒为单位返回指定持续时间的此瞬间的副本。InstantInstant. minusSeconds(long secondsToSubtract)以秒为单位返回指定持续时间的此瞬间的副本。static InstantInstant. now()从系统时钟获取当前瞬间。static InstantInstant. now(Clock clock)从指定的时钟获取当前时刻。static InstantInstant. ofEpochMilli(long epochMilli)使用从1970-01-01T00:00:00Z的时期开始的毫秒数获得Instant的实例。static InstantInstant. ofEpochSecond(long epochSecond)从1970-01-01T00:00:00Z的时代获得使用秒数的Instant的实例。static InstantInstant. ofEpochSecond(long epochSecond, long nanoAdjustment)使用从1970-01-01T00:00:00Z的时期开始的秒数获得Instant的实例,Instant获得秒的纳秒分数。static InstantInstant. parse(CharSequence text)从2007-12-03T10:15:30.00Z等文本字符串获取Instant的实例。InstantInstant. plus(long amountToAdd, TemporalUnit unit)返回添加指定数量的此瞬间的副本。InstantInstant. plus(TemporalAmount amountToAdd)返回添加指定数量的此瞬间的副本。InstantInstant. plusMillis(long millisToAdd)以毫秒为单位的指定持续时间返回此瞬间的副本。InstantInstant. plusNanos(long nanosToAdd)以指定的持续时间返回此瞬间的副本,以纳秒为单位。InstantInstant. plusSeconds(long secondsToAdd)以指定的持续时间返回此瞬间的副本,以秒为单位。InstantOffsetDateTime. toInstant()将此日期时间转换为Instant。InstantInstant. truncatedTo(TemporalUnit unit)返回此Instant的副本截断到指定的单位。InstantInstant. with(TemporalAdjuster adjuster)返回此瞬间的调整副本。InstantInstant. with(TemporalField field, long newValue)将指定的字段设置为新值返回此瞬间的副本。Methods in java.time with parameters of type Instant Modifier and Type 方法 描述 intInstant. compareTo(Instant otherInstant)将此瞬间与指定的时刻进行比较。static ClockClock. fixed(Instant fixedInstant, ZoneId zone)获得始终返回相同时刻的时钟。booleanInstant. isAfter(Instant otherInstant)检查这个瞬间是否在指定的时刻之后。booleanInstant. isBefore(Instant otherInstant)检查这个时刻是否在指定的时刻之前。static LocalDateLocalDate. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取LocalDate的实例。static LocalDateTimeLocalDateTime. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取LocalDateTime的实例。static LocalTimeLocalTime. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取LocalTime的实例。static OffsetDateTimeOffsetDateTime. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取OffsetDateTime的实例。static OffsetTimeOffsetTime. ofInstant(Instant instant, ZoneId zone)从Instant和区域ID获取OffsetTime的实例。static ZonedDateTimeZonedDateTime. ofInstant(Instant instant, ZoneId zone)从Instant获取一个ZonedDateTime的实例。 -
Uses of Instant in java.time.chrono
Methods in java.time.chrono that return Instant Modifier and Type 方法 描述 default InstantChronoLocalDateTime. toInstant(ZoneOffset offset)将此日期时间转换为Instant。default InstantChronoZonedDateTime. toInstant()将此日期时间转换为Instant。Methods in java.time.chrono with parameters of type Instant Modifier and Type 方法 描述 default ChronoZonedDateTime<? extends ChronoLocalDate>Chronology. zonedDateTime(Instant instant, ZoneId zone)获得ChronoZonedDateTime在从这个年表Instant。ChronoZonedDateTime<HijrahDate>HijrahChronology. zonedDateTime(Instant instant, ZoneId zone)ZonedDateTimeIsoChronology. zonedDateTime(Instant instant, ZoneId zone)从这个年龄从Instant获得ISOInstant日期时间。ChronoZonedDateTime<JapaneseDate>JapaneseChronology. zonedDateTime(Instant instant, ZoneId zone)ChronoZonedDateTime<MinguoDate>MinguoChronology. zonedDateTime(Instant instant, ZoneId zone)ChronoZonedDateTime<ThaiBuddhistDate>ThaiBuddhistChronology. zonedDateTime(Instant instant, ZoneId zone) -
Uses of Instant in java.time.zone
Methods in java.time.zone that return Instant Modifier and Type 方法 描述 InstantZoneOffsetTransition. getInstant()获得转换时刻。Methods in java.time.zone with parameters of type Instant Modifier and Type 方法 描述 DurationZoneRules. getDaylightSavings(Instant instant)获取此区域中指定时间使用的夏令时数量。ZoneOffsetZoneRules. getOffset(Instant instant)获得这些规则中指定时刻适用的偏移量。ZoneOffsetZoneRules. getStandardOffset(Instant instant)获取此区域中指定时刻的标准偏移量。booleanZoneRules. isDaylightSavings(Instant instant)检查指定的时间是否是夏令时。ZoneOffsetTransitionZoneRules. nextTransition(Instant instant)在指定的时刻之后获取下一个转换。ZoneOffsetTransitionZoneRules. previousTransition(Instant instant)获取指定时刻之前的转换。 -
Uses of Instant in java.util
Methods in java.util that return Instant Modifier and Type 方法 描述 InstantCalendar. toInstant()将此对象转换为Instant。InstantDate. toInstant()将此Date对象转换为Instant。Methods in java.util with parameters of type Instant Modifier and Type 方法 描述 static DateDate. from(Instant instant)从Instant对象获取一个Date的实例。 -
Uses of Instant in java.util.logging
Methods in java.util.logging that return Instant Modifier and Type 方法 描述 InstantLogRecord. getInstant()获取事件发生的时刻。Methods in java.util.logging with parameters of type Instant Modifier and Type 方法 描述 voidLogRecord. setInstant(Instant instant)设置事件发生的时刻。
-