Swaminathan K
asked on
sql query to convert between tz
Hi ,
I need to write an function which will convert a given date from gmt to est and est to gmt timezone. I have to take care of daylight savings also.
Iam using new_time as below
v_est:= new_time(sysdate,'gmt','es t')
v_gmt:= new_time(sysdate,'est'.'gm t'). But this function does not handle day light saving.
My function needs to handle the below condition,
I have to check whether daylight saving needs to be applied based on the diff between dates in various timezone and then apply it while converting it from gmt to est and est to gmt.
else
do not apply daylight saving, directly converting between gmt and est and est and gmt.
end if;
any help is really appraciated.
I need to write an function which will convert a given date from gmt to est and est to gmt timezone. I have to take care of daylight savings also.
Iam using new_time as below
v_est:= new_time(sysdate,'gmt','es
v_gmt:= new_time(sysdate,'est'.'gm
My function needs to handle the below condition,
I have to check whether daylight saving needs to be applied based on the diff between dates in various timezone and then apply it while converting it from gmt to est and est to gmt.
else
do not apply daylight saving, directly converting between gmt and est and est and gmt.
end if;
any help is really appraciated.
If you're going between EST and GMT then you don't have to worry about daylight saving time because neither of those time zones observe DST transitions
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
awesome