문제

I have a time in the format: DD-mon-RR HH.MI.SS.FF AM/PM in UTC time. I'd like to convert this to another time zone, but am having some trouble. Below is my code, but Oracle SQL Developer is saying date format not recognized.

Select From_Tz(Cast(To_Date('17-FEB-14 04.00.00.000000000 PM',
 'DD-mon-RR HH.MI.SS.FF AM') As Timestamp), 'UTC')
 AT TIME ZONE 'America/New_York' as "Local Time"
FROM DUAL;
도움이 되었습니까?

해결책

I believe the format you need is DD-MON-YY HH.MI.SS.FF9 AM. See this reference.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top