You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2014/05/13 01:37:15 UTC

[jira] [Created] (OOZIE-1836) Documenation is wrong for the timestamp() EL Function

Robert Kanter created OOZIE-1836:
------------------------------------

             Summary: Documenation is wrong for the timestamp() EL Function
                 Key: OOZIE-1836
                 URL: https://issues.apache.org/jira/browse/OOZIE-1836
             Project: Oozie
          Issue Type: Bug
          Components: docs
    Affects Versions: 4.0.0
            Reporter: Robert Kanter


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.2#6252)