1
我有一个时间戳存储为May 29 14:12:56 PDT 2015
格式的varchar2。我想将其转换为timestamp with time zone
数据类型。字符串与缩写时区转换为时间戳
如果我使用,
with x(dt_string) as (
select 'May 29 14:12:56 PDT 2015' from dual
)
select dt_string,
to_timestamp_tz(dt_string,'Mon dd hh24:mi:ss TZD YYYY') dt_ts
from x;
它给了我,
DT_STRING DT_TS
------------------------ ----------------------------------------
May 29 14:12:56 PDT 2015 29-MAY-15 02.12.56.000000000 PM +00:00
时区不正确。
的TZD值是一个缩写时区串夏令信息。它必须与TZR中指定的区域一致。
这是否意味着abbreviated time zone string
应该有Time zone region
来执行正确的转换?但是,有Time zone region
会使 abbreviated time zone string
多余。不是吗?
我该如何处理?