Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2551

Feature request: epoch timestamp generation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.0
    • Component/s: core
    • Labels:
      None

      Description

      Currently, Oozie has a coord:formatTime function for formatting time strings. Unfortunately, as this is backed by SimpleDateFormat, there is no way to produce the time in Unix-style epoch. (I.e. seconds or milliseconds since the epoch.)

      Please add a coord:unixTime (or similarly named) function that, given a time string, converts it to either seconds since the epoch or milliseconds since the epoch. Something like:

      coord:unixTime(String ts, Boolean millis)
      

      Requested by Joshua Martell

        Attachments

        1. OOZIE-2551-1.patch
          12 kB
          Jacob Tolar
        2. OOZIE-2551-2.patch
          12 kB
          Jacob Tolar
        3. OOZIE-2551-3.patch
          12 kB
          Jacob Tolar

          Activity

            People

            • Assignee:
              jtolar Jacob Tolar
              Reporter:
              jtolar Jacob Tolar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: