| 软件包 | 描述 |
|---|---|
| java.nio.file.attribute |
提供访问文件和文件系统属性的接口和类。
|
| java.sql |
提供使用Java
TM编程语言访问和处理存储在数据源(通常是关系数据库)中的数据的API。
|
| java.time |
日期,时间,瞬间和持续时间的主要API。
|
| java.time.chrono |
除默认ISO之外的日历系统的通用API。
|
| java.time.format |
提供打印和解析日期和时间的类。
|
| java.time.temporal |
使用字段和单位访问日期和时间,以及日期时间调整器。
|
| java.time.zone |
支持时区及其规则。
|
| java.util |
包含集合框架,旧集合类,事件模型,日期和时间设施,国际化和其他实用程序类(字符串tokenizer,随机数生成器和位数组)。
|
| Class and Description |
|---|
| Instant
在时间线上的瞬间点。
|
| Class and Description |
|---|
| Instant
在时间线上的瞬间点。
|
| LocalDate
在ISO-
2007-12-03 ,如
2007-12-03 。
|
| LocalDateTime
在ISO-
2007-12-03T10:15:30 ,如
2007-12-03T10:15:30 。
|
| LocalTime
在ISO-
10:15:30 ,如
10:15:30 。
|
| Class and Description |
|---|
| Clock
使用时区提供对当前即时,日期和时间的访问的时钟。
|
| DayOfWeek
星期几,如“星期二”。
|
| Duration
基于时间的时间量,如'34.5秒'。
|
| Instant
在时间线上的瞬间点。
|
| LocalDate
在ISO-
2007-12-03 ,如
2007-12-03 。
|
| LocalDateTime
在ISO-
2007-12-03T10:15:30 ,如
2007-12-03T10:15:30 。
|
| LocalTime
在ISO-
10:15:30 ,如
10:15:30 。
|
| Month
一个月,如“七月”。
|
| MonthDay
ISO-
--12-03 ,如
--12-03 。
|
| OffsetDateTime
在ISO-8601日历系统中的UTC /格林威治偏移的日期时间,例如
2007-12-03T10:15:30+01:00 。
|
| OffsetTime
在ISO-8601日历系统中偏离UTC /格林威治的时间,如
10:15:30+01:00 。
|
| Period
ISO-8601日历系统中的日期时间,例如“2年3个月4天”。
|
| Year
一年在ISO-
2007 ,如
2007 。
|
| YearMonth
在ISO-
2007-12 ,如
2007-12 。
|
| ZonedDateTime
ISO-
2007-12-03T10:15:30+01:00 Europe/Paris ,如
2007-12-03T10:15:30+01:00 Europe/Paris 。
|
| ZoneId
时区ID,如
Europe/Paris 。
|
| ZoneOffset
与格林威治/ UTC的时区偏移量,如
+02:00 。
|
| Class and Description |
|---|
| Clock
使用时区提供对当前即时,日期和时间的访问的时钟。
|
| Instant
在时间线上的瞬间点。
|
| LocalDate
在ISO-
2007-12-03 ,如
2007-12-03 。
|
| LocalDateTime
在ISO-
2007-12-03T10:15:30 ,如
2007-12-03T10:15:30 。
|
| LocalTime
在ISO-
10:15:30 ,如
10:15:30 。
|
| Period
ISO-8601日历系统中的日期时间,例如“2年3个月4天”。
|
| ZonedDateTime
ISO-
2007-12-03T10:15:30+01:00 Europe/Paris ,如
2007-12-03T10:15:30+01:00 Europe/Paris 。
|
| ZoneId
一个时区ID,如
Europe/Paris 。
|
| ZoneOffset
与格林威治/ UTC的时区偏移量,如
+02:00 。
|
| Class and Description |
|---|
| DateTimeException
用于在计算日期时间时指示问题的异常。
|
| Period
ISO-8601日历系统中的日期时间,例如“2年3个月4天”。
|
| ZoneId
时区ID,如
Europe/Paris 。
|
| Class and Description |
|---|
| DateTimeException
用于在计算日期时间时指示问题的异常。
|
| DayOfWeek
星期几,如“星期二”。
|
| Duration
基于时间的时间量,如'34.5秒'。
|
| LocalDate
在ISO-
2007-12-03 ,如
2007-12-03 。
|
| LocalTime
ISO-
10:15:30 ,如
10:15:30 。
|
| ZoneId
一个时区ID,如
Europe/Paris 。
|
| ZoneOffset
与格林威治/ UTC的时区偏移量,如
+02:00 。
|
| Class and Description |
|---|
| DateTimeException
用于在计算日期时间时指示问题的异常。
|
| DayOfWeek
星期几,如“星期二”。
|
| Duration
基于时间的时间量,如'34.5秒'。
|
| Instant
在时间线上的瞬间点。
|
| LocalDateTime
在ISO-
2007-12-03T10:15:30 ,如
2007-12-03T10:15:30 。
|
| LocalTime
在ISO-
10:15:30 ,如
10:15:30 。
|
| Month
一个月,如“七月”。
|
| ZoneOffset
与格林威治/ UTC的时区偏移量,如
+02:00 。
|
| Class and Description |
|---|
| Instant
在时间线上的瞬间点。
|
| ZonedDateTime
ISO-
2007-12-03T10:15:30+01:00 Europe/Paris ,如
2007-12-03T10:15:30+01:00 Europe/Paris 。
|
| ZoneId
一个时区ID,如
Europe/Paris 。
|
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.