Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以将此字符串转换为日期
从双选择 to_date('2013-10-15T17:18:28', 'YYYY-mm-DD"T"HH24:MI:SS')
但是我怎样才能转换这个字符串
'2013-10-15T17:18:28-06:00'
其中包括时区?
请改用 TO_TIMESTAMP_TZ:
select to_timestamp_tz('2013-10-15T17:18:28-06:00' ,'YYYY-MM-DD"T"HH24:MI:SSTZH:TZM') from dual; 15/OCT/13 05:18:28.000000000 PM -06:00