title: Convert timestamp obtained from adb shell getevent to hh:mm:ss.SSS format using java
body: <p>I am trying to convert the timestamp captured from adb shell getevent by using the following command </p>
  
  <pre><code>adb shell getevent -lt /dev/input/event2 &gt;filepath/filename.txt
  </code></pre>
  
  <p>This gives the output like the below</p>
  
  <pre><code>  [   19393.303318] EV_ABS       ABS_MT_TRACKING_ID   00000b87
    [   19393.303318] EV_ABS       ABS_MT_POSITION_X    00000180
    [   19393.303318] EV_ABS       ABS_MT_POSITION_Y    000004e2
    [   19393.303318] EV_ABS       ABS_MT_PRESSURE      0000004c
    [   19393.303318] EV_ABS       ABS_MT_TOUCH_MAJOR   00000001
    [   19393.303318] EV_SYN       SYN_REPORT           00000000
  </code></pre>
  
  <p>here the timestamp seen is 19393.303318 which is not in normal time format</p>
  
  <p>How to convert it in to hh:mm:ss:SSS format using JAVA</p>
  
  <p>If possible is there any other way to get proper time format for adb shell getevent </p>
  
  <p>Thanks in advance</p>