[
https://issues.apache.org/jira/browse/OOZIE-1836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
abhishek bafna updated OOZIE-1836:
----------------------------------
Fix Version/s: (was: trunk)
4.3.0
> Documenation is wrong for the timestamp() EL Function
> -----------------------------------------------------
>
> Key: OOZIE-1836
> URL: https://issues.apache.org/jira/browse/OOZIE-1836
> Project: Oozie
> Issue Type: Sub-task
> Components: docs
> Affects Versions: 4.0.0
> Reporter: Robert Kanter
> Assignee: Meenakshi Lakshmanan
> Labels: newbie
> Fix For: 4.3.0
>
> Attachments: OOZIE-1836.patch, OOZIE-1836.txt
>
>
> The documentation for the {{timestamp()}} EL Function says:
> {quote}
> It returns the UTC current date and time in W3C format down to the second
> (YYYY-MM-DDThh:mm:ss.sZ). I.e.: 1997-07-16T19:20:30.45Z
> {quote}
> https://oozie.apache.org/docs/4.0.1/WorkflowFunctionalSpec.html#a4.2_Expression_Language_Functions
> This is incorrect. It's ISO08601 format in Oozie processing timezone down to
> the minute (like other Oozie time formats). The Javadoc is even correct:
> {code:java}
> /**
> * Return the current datetime in ISO8601 using Oozie processing
> timezone, yyyy-MM-ddTHH:mmZ. i.e.:
> * 1997-07-16T19:20Z
> *
> * @return the formatted time string.
> */
> public static String timestamp() {
> return DateUtils.formatDateOozieTZ(new Date());
> }
> {code}
> We should update the documentation to match the javadoc
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)