You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Anbalagan Pugaleesan (JIRA)" <ji...@apache.org> on 2015/02/02 06:25:34 UTC
[jira] [Assigned] (OOZIE-1836) Documenation is wrong for the
timestamp() EL Function
[ https://issues.apache.org/jira/browse/OOZIE-1836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anbalagan Pugaleesan reassigned OOZIE-1836:
-------------------------------------------
Assignee: Anbalagan Pugaleesan
> 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: Anbalagan Pugaleesan
> Labels: newbie
> Attachments: 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)