title: javascript getting hour and min from epoch value
body: <p>i am using the below code to get the hh:mm from epoch</p>
  
  <pre><code> var dt = new Date(t*1000);  
      var hr = dt.getHours();
      var m = "0" + dt.getMinutes();
      return hr+ ':' + m.substr(-2)
  </code></pre>
  
  <p>for below values:</p>
  
  <pre><code>1542895249079  prints: 19:37  Expected: 2:00 PM
  1542897015049  prints: 6:10  Expected: 2:30 PM
  1542902445344  prints: 2:35  Expected: 4:00 PM
  </code></pre>
  
  <p>I am sort of lost on this as the conversion values from above code looks totally weird to me. </p>