Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
8d3ce6f8
提交
8d3ce6f8
authored
2月 21, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update documentation of date-time data types
上级
1df91ca8
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
15 行增加
和
7 行删除
+15
-7
help.csv
h2/src/docsrc/help/help.csv
+15
-7
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
8d3ce6f8
...
...
@@ -2437,9 +2437,11 @@ REAL
"Data Types","TIME Type","
TIME
","
The time data type. The format is hh:mm:ss.
The time data type. The format is hh:mm:ss
[.nnnnnnnnn]
.
Mapped to ""java.sql.Time"". When converted to a ""java.sql.Date"", the date is set to ""1970-01-01"".
""java.time.LocalTime"" is also supported on Java 8 and later versions.
Resolution of ""java.sql.Time"" is limited to milliseconds, use ""String"" or ""java.sql.Time"" if you need nanosecond resolution.
","
TIME
"
...
...
@@ -2451,6 +2453,7 @@ The date data type. The format is yyyy-MM-dd.
Mapped to ""java.sql.Date"", with the time set to ""00:00:00""
(or to the next possible time if midnight doesn't exist for the given date and timezone due to a daylight saving change).
""java.time.LocalDate"" is also supported on Java 8 and later versions.
","
DATE
"
...
...
@@ -2459,9 +2462,10 @@ DATE
{ TIMESTAMP | DATETIME | SMALLDATETIME }
","
The timestamp data type. The format is yyyy-MM-dd hh:mm:ss[.nnnnnnnnn].
Stored internally as a BCD-encoded date, and nano
-
seconds since midnight.
Stored internally as a BCD-encoded date, and nanoseconds since midnight.
Mapped to ""java.sql.Timestamp"" (""java.util.Date"" is also supported).
Mapped to ""java.sql.Timestamp"" (""java.util.Date"" may be used too).
""java.time.LocalDateTime"" is also supported on Java 8 and later versions.
","
TIMESTAMP
"
...
...
@@ -2469,12 +2473,16 @@ TIMESTAMP
"Data Types","TIMESTAMP WITH TIME ZONE Type","
TIMESTAMP WITH TIME ZONE
","
VERY MUCH STILL IN TESTING.
The timestamp with time zone data type.
Stored internally as a BCD-encoded date, nano-seconds since midnight, and timezone offset in minutes.
Note that range queries on this datatype may do some weird stuff close to DST boundaries.
Stored internally as a BCD-encoded date, nanoseconds since midnight, and time zone offset in minutes.
Mapped to ""org.h2.api.TimestampWithTimeZone""
Mapped to ""org.h2.api.TimestampWithTimeZone"".
""java.time.OffsetDateTime"" and ""java.time.Instant"" are also supported on Java 8 and later versions.
Values of this data type are compared by UTC values. It means that ""2010-01-01 10:00:00+01"" is greater than ""2010-01-01 11:00:00+03"".
Conversion to ""TIMESTAMP"" uses time zone offset to get UTC time and converts it to local time using the system time zone.
Conversion from ""TIMESTAMP"" does the same operations in reverse and sets time zone offset to offset of the system time zone.
","
TIMESTAMP WITH TIME ZONE
"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论