软件包 | 描述 |
---|---|
java.time.chrono |
除了默认的标准以外的日历系统的通用的。
|
java.time.format |
提供打印和解析日期和时间的类。
|
java.time.temporal |
访问日期和时间的应用领域和单位,时间和日期的调节。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractChronology
用于组织和识别日期的日历系统的一个抽象实现。
|
class |
HijrahChronology
迁徙的日历是农历支持伊斯兰日历。
|
class |
IsoChronology
等日历系统。
|
class |
JapaneseChronology
日本帝国日历系统。
|
class |
MinguoChronology
民国的日历系统。
|
class |
ThaiBuddhistChronology
泰国佛教日历系统。
|
Modifier and Type | Method and Description |
---|---|
static Chronology |
Chronology.from(TemporalAccessor temporal)
获得
Chronology 实例从一个时空对象。
|
Chronology |
ChronoLocalDate.getChronology()
获取此日期的日期。
|
Chronology |
ChronoPeriod.getChronology()
获取定义支持单位的意义的时间顺序。
|
default Chronology |
ChronoLocalDateTime.getChronology()
获取此日期时间的日期。
|
default Chronology |
ChronoZonedDateTime.getChronology()
获取此日期时间的日期。
|
static Chronology |
Chronology.of(String id)
获得
Chronology 实例从年代学的ID或日历系统类型。
|
static Chronology |
Chronology.ofLocale(Locale locale)
获得
Chronology 实例从现场。
|
Modifier and Type | Method and Description |
---|---|
static Set<Chronology> |
Chronology.getAvailableChronologies()
返回可用的年表。
|
Modifier and Type | Method and Description |
---|---|
int |
AbstractChronology.compareTo(Chronology other)
把这个年代与另一个年代比较。
|
int |
Chronology.compareTo(Chronology other)
把这个年代与另一个年代比较。
|
Modifier and Type | Method and Description |
---|---|
Chronology |
DateTimeFormatter.getChronology()
获取在格式化过程中使用的最重要的时间。
|
Modifier and Type | Method and Description |
---|---|
static String |
DateTimeFormatterBuilder.getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, Chronology chrono, Locale locale)
获取区域设置和时间的日期和时间样式的格式模式。
|
DateTimeFormatter |
DateTimeFormatter.withChronology(Chronology chrono)
返回一个格式化程序的一个新的重写这个年表。
|
Modifier and Type | Method and Description |
---|---|
static TemporalQuery<Chronology> |
TemporalQueries.chronology()
为
Chronology 查询。
|
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.