Convert to Global Time Zone using the Time Zone conversion

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
rameshkm
Participant
Posts: 24
Joined: Tue May 06, 2008 6:02 am
Location: chennai
Contact:

Convert to Global Time Zone using the Time Zone conversion

Post by rameshkm »

Hi,
I have a Situation as "Convert to Global Time Zone using the Time Zone conversion " for given timestamp field , Please help in this , thanks in ADVANCE
Ramesh Kumar.M
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

A timestamp does not contain time zone information, so you need additional data in some form to (a) find out what time zone a given timestamp value is in, and (b) define 'global time' for your application and add/subtract the requisite number of hours from your timestamp.

What database (some support timezones) is your data coming from?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In addition to what Arnd advised, your method may need to handle changes in time within a time zone (usually called "summer time" or "daylight saving time"). Sometimes the change dates are regulated, some places it's more erratic. And some countries involve more than one time zone.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
udayk_2007
Participant
Posts: 72
Joined: Wed Dec 12, 2007 2:29 am

Post by udayk_2007 »

If you are using oracle database,then you can do time conversion in different time zones using new_time function

new_time( date, zone1, zone2 )
Post Reply