Add quarter day to current timestamp

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
deepa.y
Participant
Posts: 56
Joined: Mon Nov 28, 2011 10:47 pm
Location: Bangalore

Add quarter day to current timestamp

Post by deepa.y »

Hi,
I have a requirement to add quarter day to the current timestamp
if current timestamp is 2/28/2012 10:32:17 PM,
my output should be 2/28/12 10:32 PM+(1/4)=2/29/12 4:32 AM
Please suggest me hoe can i achieve this?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Add 21600 seconds to the timestamp.

The function is called something like TimestampFromSecondsSince().
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
deepa.y
Participant
Posts: 56
Joined: Mon Nov 28, 2011 10:47 pm
Location: Bangalore

Post by deepa.y »

Thanks Ray.It worked.
Post Reply