Timezone conversion [message #310948] |
Wed, 02 April 2008 23:23  |
reachneelima
Messages: 3 Registered: April 2008
|
Junior Member |
|
|
Hi,
There is a column(NVARCHAR2 (50)) in my table which stores the timezone information.
The data in it can be for eg 'GMT' or with some offset like 'GMT +05:30'.
I need to write query which will extract the equivalent timezone string for me.
Ideally it should return 'GMT' if the data in the column is 'GMT' or
it should return 'PST' if the value in the column is 'GMT-8'.
How to do this? Please help.
Thanks,
Neelima
|
|
|
|
Re: Timezone conversion [message #310951 is a reply to message #310949] |
Wed, 02 April 2008 23:33   |
reachneelima
Messages: 3 Registered: April 2008
|
Junior Member |
|
|
I too can't do anything about it since I am not the owner of
those tables. They are already there and I can't change the
design of those tables. All I want now is to extract the data
somehow.
Thanks,
Neelima
|
|
|
|
Re: Timezone conversion [message #310956 is a reply to message #310948] |
Wed, 02 April 2008 23:47   |
reachneelima
Messages: 3 Registered: April 2008
|
Junior Member |
|
|
That was very rude!
************************
Can someone please help me out?
Assumption: Values will be stored correctly in the column
and there won't be any junk data.
Thanks,
Neelima
|
|
|
|
Re: Timezone conversion [message #310971 is a reply to message #310948] |
Thu, 03 April 2008 00:14  |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
There is no built-in function for this, you have to create your own Java function using java.util.TimeZone classes.
Regards
Michel
|
|
|