软件包 | 描述 |
---|---|
java.time |
日期、时间、时刻主要的API,和持续时间。
|
java.time.zone |
支持时区及其规则。
|
Modifier and Type | Method and Description |
---|---|
abstract ZoneRules |
ZoneId.getRules()
获取此标识允许执行的计算的时区规则。
|
ZoneRules |
ZoneOffset.getRules()
获取关联的时区规则。
|
Modifier and Type | Method and Description |
---|---|
static ZoneRules |
ZoneRulesProvider.getRules(String zoneId, boolean forCaching)
获取区域标识的规则。
|
static ZoneRules |
ZoneRules.of(ZoneOffset offset)
得到ZoneRules有固定区域规则的实例。
|
static ZoneRules |
ZoneRules.of(ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, List<ZoneOffsetTransition> standardOffsetTransitionList, List<ZoneOffsetTransition> transitionList, List<ZoneOffsetTransitionRule> lastRules)
得到一个zonerules实例。
|
protected abstract ZoneRules |
ZoneRulesProvider.provideRules(String zoneId, boolean forCaching)
SPI的方法得到的规则区域ID。
|
Modifier and Type | Method and Description |
---|---|
static NavigableMap<String,ZoneRules> |
ZoneRulesProvider.getVersions(String zoneId)
获取区域标识的规则的历史。
|
protected abstract NavigableMap<String,ZoneRules> |
ZoneRulesProvider.provideVersions(String zoneId)
SPI方法得到的区域ID规则的历史
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.