在oracle的“Oracle® Database Globalization Support Guide”文档中有关timestamp with timezone的描述让我无法理解。Two TIMESTAMP WITH TIME ZONE values are considered identical if they represent the same instant in UTC, regardless of the TIME ZONE offsets stored in the data. For example, the following expressions have the same value:TIMESTAMP '1999-01-15 8:00:00 -8:00'
TIMESTAMP '1999-01-15 11:00:00 -5:00'-----------
TIMESTAMP '1999-01-15 8:00:00 -8:00'
TIMESTAMP '1999-01-15 11:00:00 -5:00'
-----------这两个数据的utc instance时间是多少?
TIMESTAMP '1999-01-15 8:00:00 -8:00'——》utc time"1999-01-15 0:00:00"
TIMESTAMP '1999-01-15 11:00:00 -5:00'——》utc time"1999-01-15 6:00:00"
还是其他?怎么得出“the following expressions have the same value”这个结论的?
TIMESTAMP '1999-01-15 11:00:00 -5:00'-----------
TIMESTAMP '1999-01-15 8:00:00 -8:00'
TIMESTAMP '1999-01-15 11:00:00 -5:00'
-----------这两个数据的utc instance时间是多少?
TIMESTAMP '1999-01-15 8:00:00 -8:00'——》utc time"1999-01-15 0:00:00"
TIMESTAMP '1999-01-15 11:00:00 -5:00'——》utc time"1999-01-15 6:00:00"
还是其他?怎么得出“the following expressions have the same value”这个结论的?
解决方案 »
- 调试的问题,望指教
- 关于每人次读取不同数据并操作的问题。(实在不知道该起个什么名字好)
- 急!!!求一个sql语句。这剩这么多分了……
- 将从www.oracle.com下载的oracle9i作商业用途,会有技术上的问题吗?
- 用c写一个update oracle 的函数,该如何设置它的参数?
- 求助:EXP报ORACLE error 1013
- 请问Oracle的错误号
- 怎么实现删除再排序?
- 关于Oracle Listener监听的问题
- 怎样实现SQL Server2000和Oracle之间的数据传递?
- Oracle的列名能不能用下划线开头,例如: _Identify, _Locked, _SortKey
- oracle 10g oem如何管理oracle 9i数据库
TIMESTAMP '1999-01-15 8:00:00 -8:00'——》utc time"1999-01-15 16:00:00"
TIMESTAMP '1999-01-15 11:00:00 -5:00'——》utc time"1999-01-15 16:00:00" 的话就是相同的了?应该是如此吧。
“'1999-01-15 8:00:00”为当地时间。“-8:00”为以西180度为-xx的时区。所以“'1999-01-15 8:00:00 ”-“-8:00”为格林威治时间的“1999-01-15 16:00:00”。
也就是说utc时间为“1999-01-15 16:00:00”时,“-8.00”时区的时间为“1999-01-15 8:00:00”, “-5:00的”时区的时间为“'1999-01-15 11:00:00'”,如果以utc时间为标准的话,是同一时间。“ The time zone offset is the difference (in hours and minutes) between local time and UTC (Coordinated Universal Time, formerly Greenwich Mean Time)”这段是oracle对time offset的定义。