Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26121

Formatter to convert from epoch time to human readable date format.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • shell
    • None

    Description

      In shell, we have custom formatter to convert from bytes to Long/Int for long/int data type values.

      Many times we store the epoch timestamp (event creation, updation time) as long in our table columns. Even after converting this column to Long, the date is not in a human readable format. We still have to convert this long into date using some bash shell tricks and it is not convenient to do for many columns. We can introduce a new format method called toLongDate which signifies that we want to convert the bytes to long first and then to date.

      Please let me know if any such functionality already exists and I am not aware of.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shahrs87 Rushabh Shah
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: