첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
SET SERVEROUTPUT ON;

DECLARE
    V_SOURCE_TIME  TIMESTAMP := CAST('2019-11-02 21:27:00' AS TIMESTAMP);
    V_TARGET_TIME1 TIMESTAMP WITH TIME ZONE;
    V_TARGET_TIME2 TIMESTAMP WITH TIME ZONE;
BEGIN
    V_TARGET_TIME1 := FROM_TZ(V_SOURCE_TIME, '-5:00'     );
    V_TARGET_TIME2 := FROM_TZ(V_SOURCE_TIME, 'US/EASTERN');

    DBMS_OUTPUT.PUT_LINE(V_TARGET_TIME1);
    DBMS_OUTPUT.PUT_LINE(V_TARGET_TIME2);
END;
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요