Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

different time zones in db2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: different time zones in db2
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    Post subject:
Reply with quote

Hope this article will help you.

http://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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us