Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1881 Docs fixes
  3. OOZIE-1836

Documenation is wrong for the timestamp() EL Function

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.3.0
    • docs

    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

      Attachments

        1. OOZIE-1836.txt
          0.7 kB
          Meenakshi Lakshmanan
        2. OOZIE-1836.patch
          0.7 kB
          Harsh J

        Activity

          People

            meenakshi9588 Meenakshi Lakshmanan
            rkanter Robert Kanter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: