How to get difference time between start_time and end_time

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
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

How to get difference time between start_time and end_time

Post by deesh »

Hi Friends,

Can give me the suggestion (logic) how to find difference time between start_time and end_time. I am tried one logic in oracle its giving good results but when i am trying in DataStage its not working. Once again i am requesting friends can give suggestion on this issue

Example:

end_time - Start_time = diff_time

this logic working in Oracle not in DS
if you people know about the solvation of this issue can suggest to me.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

It depends on what format your start_time and end_time are. The typical formats are String and TimeStamp. In either case you can convert this to seconds and can compute the mathematical delta in seconds. Or you can do this directly between two TimeStamps and get a delta in TimeStamp format.
Post Reply