title: How to get nano second granularity from hex time?
body: <p>I am trying to convert hex time(getting first output from kernel module) into nanosecond granularity,</p>
  
  <pre><code>580a9272.0a9ce167 
  </code></pre>
  
  <p>and I am trying to convert it using perl into human readable format:</p>
  
  <pre><code>while (&lt;&gt;) {
  s/^([a-fA-F0-9]+)(\.)([a-fA-F0-9]+)(\s+.*)/sprintf("%s%s%s%s",&amp;$converter(hex($1)), $2, hex($3), $4)/oe;
  } continue {
  print;
  }
  </code></pre>
  
  <p>output : Fri Oct 21 18:10:58 2016.178053479</p>
  
  <p>Converter uses localtime() and gmtime() directly
  I want time with nano granularity and then year.Any help is highly appreciated.</p>