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

different time zones in db2


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

New User


Joined: 21 Jan 2009
Posts: 84
Location: India

PostPosted: Fri Dec 10, 2010 9:51 am
Reply with quote

Hi,

I have a requirement to produce a report for a few countries (on diff timezones) : -

The report has to include the local time when it is genereted.

The problem is, it takes the system time (from DB2), So my question goes as:

Is there any DB2 SYSIBM table which contains all timezones (GMT offset) and we can use either of them accordingly ?

If not, Is there any other way of achieving this ? (the only idea that comes to my mind is creating a DB2 table which can be loaded with the timezone data (GMT offset) for all the countries we need to produce this report for ?

Thanks in advance.
Back to top
View user's profile Send private message
avik1983

New User


Joined: 11 Mar 2010
Posts: 5
Location: Chennai

PostPosted: Fri Dec 10, 2010 2:40 pm
Reply with quote

Hope this article will help you.

www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.html
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Dec 10, 2010 3:06 pm
Reply with quote

you shouldn't call it GMT but UTC.

and what about DST ?

DB2 does not support this, but once you have set up a table containing the timezone and DST-periods , writing a UDF shouldn't be to hard.

If your company is US-based or international, probably someone has already written this kind of routine (maybe not in SQL, but in COBOL,....) .
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 the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top