Description
The documentation for the timestamp() EL Function says:
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
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:
/** * 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()); }
We should update the documentation to match the javadoc