IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

TIMESTAMP convertion from UTC to EST/PST/CST


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mallik4u

New User


Joined: 17 Sep 2008
Posts: 75
Location: bangalore

PostPosted: Mon Jun 02, 2014 1:13 pm
Reply with quote

Hi,

In DB2V10 TIMESTAMP WITH TIMEZONE has been introduced. I would like to know is there any way to convert TIMESTAMP stored in table (WITH TIMEZONE) to different timezone. For example: If the local timezone is CST then DB2 will produce timestamp in CST and adds '-05:00' as time difference between CST and UTC. Now how we can derive PST time from this time stamp?

I could not find any documentation on time conversion in internet.

Thanks,
Mallik
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Jun 03, 2014 1:07 pm
Reply with quote

Code:
select TS_Col at timezone '-08:00' from ...

should work
Back to top
View user's profile Send private message
mallik4u

New User


Joined: 17 Sep 2008
Posts: 75
Location: bangalore

PostPosted: Tue Jun 03, 2014 8:57 pm
Reply with quote

Thank you very much. That helped.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Calculate with timestamp PL/I & Assembler 19
No new posts Timestamp in TCP/IP for Z/VSE JCL JCL & VSAM 0
No new posts how to add date & timestamp to th... DFSORT/ICETOOL 5
No new posts DB2 Timestamp field weird behaviour. DB2 8
No new posts How to get MQPUT Timestamp? Java & MQSeries 3
Search our Forums:

Back to Top