View previous topic :: View next topic
|
Author |
Message |
rakesh1155
New User
Joined: 21 Jan 2009 Posts: 84 Location: India
|
|
|
|
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 |
|
|
avik1983
New User
Joined: 11 Mar 2010 Posts: 5 Location: Chennai
|
|
Back to top |
|
|
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
|
|
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 |
|
|
|