Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need to identify top 10 costly or tim... ashek15 DB2 4 Wed Feb 14, 2018 3:20 am
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm
No new posts Query to skip Max time-stamp and fetc... vickey_dw DB2 8 Sun Jan 28, 2018 1:09 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us