Uses of Class
java.time.ZoneOffset
-
Packages that use ZoneOffset 软件包 描述 java.time 日期,时间,瞬间和持续时间的主要API。java.time.chrono 除默认ISO之外的日历系统的通用API。java.time.temporal 使用字段和单位访问日期和时间,以及日期时间调整器。java.time.zone 支持时区及其规则。 -
-
Uses of ZoneOffset in java.time
Fields in java.time declared as ZoneOffset Modifier and Type Field 描述 static ZoneOffsetZoneOffset. MAX最大支持偏移量的常数。static ZoneOffsetZoneOffset. MIN最小支持偏移量的常数。static ZoneOffsetZoneOffset. UTCUTC的时区偏移量,ID为“Z”。Methods in java.time that return ZoneOffset Modifier and Type 方法 描述 static ZoneOffsetZoneOffset. from(TemporalAccessor temporal)从时间对象获取一个ZoneOffset的实例。ZoneOffsetOffsetDateTime. getOffset()获取区域偏移量,例如“+01:00”。ZoneOffsetOffsetTime. getOffset()获取区域偏移量,例如“+01:00”。ZoneOffsetZonedDateTime. getOffset()获取区域偏移量,例如“+01:00”。static ZoneOffsetZoneOffset. of(String offsetId)使用ID获取ZoneOffset的实例。static ZoneOffsetZoneOffset. ofHours(int hours)获取ZoneOffset的实例,使用小时数的偏移量。static ZoneOffsetZoneOffset. ofHoursMinutes(int hours, int minutes)获取ZoneOffset的实例,以小时和分钟为ZoneOffset使用偏移量。static ZoneOffsetZoneOffset. ofHoursMinutesSeconds(int hours, int minutes, int seconds)获取ZoneOffset的实例,使用小时,分和秒的偏移量。static ZoneOffsetZoneOffset. ofTotalSeconds(int totalSeconds)获取ZoneOffset的实例,指定总偏移量(以秒为单位)Methods in java.time with parameters of type ZoneOffset Modifier and Type 方法 描述 OffsetDateTimeInstant. atOffset(ZoneOffset offset)将此瞬间与偏移组合,创建一个OffsetDateTime。OffsetDateTimeLocalDateTime. atOffset(ZoneOffset offset)将此日期时间与偏移量相结合,创建一个OffsetDateTime。OffsetTimeLocalTime. atOffset(ZoneOffset offset)结合这个时间与偏移创建一个OffsetTime。intZoneOffset. compareTo(ZoneOffset other)将此偏移量与其他偏移量按降序进行比较。static OffsetDateTimeOffsetDateTime. of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset)从年,月,日,小时,分,秒,纳秒和偏移中获取OffsetDateTime的实例。static OffsetDateTimeOffsetDateTime. of(LocalDate date, LocalTime time, ZoneOffset offset)从日期,时间和偏移量获取OffsetDateTime的实例。static OffsetDateTimeOffsetDateTime. of(LocalDateTime dateTime, ZoneOffset offset)从日期时间和偏移量获取OffsetDateTime的实例。static OffsetTimeOffsetTime. of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset)从一小时,分钟,秒和纳秒获取OffsetTime的实例。static OffsetTimeOffsetTime. of(LocalTime time, ZoneOffset offset)从当地时间和偏移量获取OffsetTime的实例。static LocalDateTimeLocalDateTime. ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset)使用从1970-01-01T00:00:00Z的时代开始的秒数获得LocalDateTime的实例。static ZonedDateTimeZonedDateTime. ofInstant(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone)从本地日期时间和偏移量组合形成的瞬间获取ZonedDateTime的实例。static ZonedDateTimeZonedDateTime. ofLocal(LocalDateTime localDateTime, ZoneId zone, ZoneOffset preferredOffset)从本地日期时间获取ZonedDateTime的实例,如果可能,使用首选偏移量。static ZoneIdZoneId. ofOffset(String prefix, ZoneOffset offset)获取一个封装偏移的实例ZoneId。static ZonedDateTimeZonedDateTime. ofStrict(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone)获取ZonedDateTime的实例,严格验证本地日期时间,偏移量和区域ID的组合。longLocalDate. toEpochSecond(LocalTime time, ZoneOffset offset)将此LocalDate转换为1970-01-01T00:00:00Z的时代以来的秒数。longLocalTime. toEpochSecond(LocalDate date, ZoneOffset offset)将此LocalTime转换为1970-01-01T00:00:00Z的时代以来的秒数。OffsetDateTimeOffsetDateTime. withOffsetSameInstant(ZoneOffset offset)以指定的偏移量返回此OffsetDateTime的副本,确保结果处于同一时刻。OffsetTimeOffsetTime. withOffsetSameInstant(ZoneOffset offset)返回具有指定偏移量的OffsetTime的副本,确保结果在隐含日期处于同一时刻。OffsetDateTimeOffsetDateTime. withOffsetSameLocal(ZoneOffset offset)返回具有指定偏移量的OffsetDateTime的副本,确保结果具有相同的本地日期时间。OffsetTimeOffsetTime. withOffsetSameLocal(ZoneOffset offset)以指定的偏移量返回此OffsetTime的副本,确保结果具有相同的本地时间。 -
Uses of ZoneOffset in java.time.chrono
Methods in java.time.chrono that return ZoneOffset Modifier and Type 方法 描述 ZoneOffsetChronoZonedDateTime. getOffset()获取区域偏移量,例如“+01:00”。Methods in java.time.chrono with parameters of type ZoneOffset Modifier and Type 方法 描述 default longChronology. epochSecond(int prolepticYear, int month, int dayOfMonth, int hour, int minute, int second, ZoneOffset zoneOffset)从1970-01-01T00:00:00Z的时期获取秒数。default longChronology. epochSecond(Era era, int yearOfEra, int month, int dayOfMonth, int hour, int minute, int second, ZoneOffset zoneOffset)从1970-01-01T00:00:00Z的时期获取秒数。longIsoChronology. epochSecond(int prolepticYear, int month, int dayOfMonth, int hour, int minute, int second, ZoneOffset zoneOffset)从1970-01-01T00:00:00Z的时期获取秒数。default longChronoLocalDateTime. toEpochSecond(ZoneOffset offset)将此日期时间转换为从1970-01-01T00:00:00Z的时期开始的秒数。default InstantChronoLocalDateTime. toInstant(ZoneOffset offset)将此日期时间转换为Instant。 -
Uses of ZoneOffset in java.time.temporal
Methods in java.time.temporal that return types with arguments of type ZoneOffset Modifier and Type 方法 描述 static TemporalQuery<ZoneOffset>TemporalQueries. offset()对于ZoneOffset的查询,如果找不到则返回null。 -
Uses of ZoneOffset in java.time.zone
Methods in java.time.zone that return ZoneOffset Modifier and Type 方法 描述 ZoneOffsetZoneRules. getOffset(Instant instant)获得这些规则中指定时刻适用的偏移量。ZoneOffsetZoneRules. getOffset(LocalDateTime localDateTime)在这些规则中为指定的本地日期时间获取适当的偏移量。ZoneOffsetZoneOffsetTransition. getOffsetAfter()获得转换后的偏移量。ZoneOffsetZoneOffsetTransitionRule. getOffsetAfter()获得转换后的偏移量。ZoneOffsetZoneOffsetTransition. getOffsetBefore()在转换之前获取偏移量。ZoneOffsetZoneOffsetTransitionRule. getOffsetBefore()在转换之前获取偏移量。ZoneOffsetZoneOffsetTransitionRule. getStandardOffset()在转换时获得有效的标准偏移量。ZoneOffsetZoneRules. getStandardOffset(Instant instant)获取此区域中指定时刻的标准偏移量。Methods in java.time.zone that return types with arguments of type ZoneOffset Modifier and Type 方法 描述 List<ZoneOffset>ZoneRules. getValidOffsets(LocalDateTime localDateTime)在这些规则中获取在指定的本地日期时间中适用的偏移量。Methods in java.time.zone with parameters of type ZoneOffset Modifier and Type 方法 描述 LocalDateTimeZoneOffsetTransitionRule.TimeDefinition. createDateTime(LocalDateTime dateTime, ZoneOffset standardOffset, ZoneOffset wallOffset)将指定的本地日期时间转换为挂钟上实际看到的本地日期时间。booleanZoneOffsetTransition. isValidOffset(ZoneOffset offset)在此转换期间检查指定的偏移是否有效。booleanZoneRules. isValidOffset(LocalDateTime localDateTime, ZoneOffset offset)检查偏移日期时间对于这些规则是否有效。static ZoneOffsetTransitionZoneOffsetTransition. of(LocalDateTime transition, ZoneOffset offsetBefore, ZoneOffset offsetAfter)获取定义两个偏移之间的转换的实例。static ZoneOffsetTransitionRuleZoneOffsetTransitionRule. of(Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneOffsetTransitionRule.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter)获取定义年度规则以在两个偏移之间创建转换的实例。static ZoneRulesZoneRules. of(ZoneOffset offset)获取具有固定区域规则的ZoneRules实例。static ZoneRulesZoneRules. of(ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, List<ZoneOffsetTransition> standardOffsetTransitionList, List<ZoneOffsetTransition> transitionList, List<ZoneOffsetTransitionRule> lastRules)获取ZoneRules的实例。
-