oozie-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Reddy <dre...@couponsinc.com>
Subject RE: datetime conversion to a specific timezone
Date Wed, 02 Nov 2011 21:05:32 GMT
Hi Mohammad,

I tried the following in my coordinator.xml file (the job runs in UTC) 

${coord:formatTime(coord:nominalTime(), 'yyyy-MM-dd HH:mm:ss z')}

It actually returns 2011-11-02 00:30:00 UTC which is not what I am expecting.

If the nominal time is 2011-11-02 00:30:00 UTC then I would like to pass 2011-11-01 17:30:00
PST to my job from the oozie workflow.

Thank you,

-----Original Message-----
From: Mohammad Islam [mailto:mislam77@yahoo.com] 
Sent: Wednesday, November 02, 2011 11:35 AM
To: oozie-users@incubator.apache.org
Subject: Re: datetime conversion to a specific timezone

Can you try this?

Basically use {coord:formatTime(oord:nominalTime(), String format)} . In the 'format' string
specify the new TZ.

I never tested that, but it should work.


From: Deepak Reddy <dreddy@couponsinc.com>
To: "oozie-users@incubator.apache.org" <oozie-users@incubator.apache.org>
Sent: Wednesday, November 2, 2011 11:02 AM
Subject: datetime conversion to a specific timezone

Is there a way to convert the nominal time from UTC to say PST/PDT within oozie workflow.


View raw message