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 变量和类型 字段 描述 static ZoneOffsetZoneOffset. MAX最大支持偏移量的常量。static ZoneOffsetZoneOffset. MIN最小支持偏移量的常量。static ZoneOffsetZoneOffset. UTCUTC的时区偏移量,ID为“Z”。Methods in java.time that return ZoneOffset 变量和类型 方法 描述 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的实例。static ZoneOffsetZoneOffset. ofHoursMinutesSeconds(int hours, int minutes, int seconds)使用小时,分钟和秒的偏移量获得ZoneOffset的实例。static ZoneOffsetZoneOffset. ofTotalSeconds(int totalSeconds)获得ZoneOffset的实例,以秒为ZoneOffset指定总偏移量Methods in java.time with parameters of type ZoneOffset 变量和类型 方法 描述 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 变量和类型 方法 描述 ZoneOffsetChronoZonedDateTime. getOffset()获取区域偏移量,例如“+01:00”。Methods in java.time.chrono with parameters of type ZoneOffset 变量和类型 方法 描述 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 变量和类型 方法 描述 static TemporalQuery<ZoneOffset>TemporalQueries. offset()查询ZoneOffset如果找不到则返回null。 -
Uses of ZoneOffset in java.time.zone
Methods in java.time.zone that return ZoneOffset 变量和类型 方法 描述 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 变量和类型 方法 描述 List<ZoneOffset>ZoneRules. getValidOffsets(LocalDateTime localDateTime)获取这些规则中指定的本地日期时间适用的偏移量。Methods in java.time.zone with parameters of type ZoneOffset 变量和类型 方法 描述 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的实例。
-