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

Feature request: epoch timestamp generation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.3.0
    • core
    • 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 jmartell7

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: