提交 a5221c85 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 b5477761
...@@ -1212,13 +1212,11 @@ CALL TIMESTAMP '2008-01-01 12:00:00+01:00'; ...@@ -1212,13 +1212,11 @@ CALL TIMESTAMP '2008-01-01 12:00:00+01:00';
</pre> </pre>
<p> <p>
If the time zone is not set, the value is parsed using the current time zone setting of the system. If the time zone is not set, the value is parsed using the current time zone setting of the system.
Date and time information is stored in H2 database files in local time. Date and time information is stored in H2 database files without time zone information.
If the database is opened using another system time zone, the date and time will change accordingly. If the database is opened using another system time zone, the date and time will be the same.
If you want to move a database from one time zone to the other and don't want this to happen, That means if you store the value '2000-01-01 12:00:00' in one time zone, then close the database
you need to create a SQL script file using the <code>SCRIPT</code> command or and open the database again in a different time zone, you will also get '2000-01-01 12:00:00'.
<code>Script</code> tool, and then load Please note that changing the time zone after the H2 driver is loaded is not supported.
the database using the <code>RUNSCRIPT</code> command
or the <code>RunScript</code> tool in the new time zone.
</p> </p>
<h2 id="spring">Using Spring</h2> <h2 id="spring">Using Spring</h2>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论