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 To get the count of rows for every 1 ... DB2 3
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts Timestamp difference and its average ... DB2 11
No new posts IBM DCW (data convertion workbench) IBM Tools 0
No new posts To get previous month from current ti... SYNCSORT 7
Search our Forums:

Back to Top