title: How to format number as time in Moment?
body: <p>I am using <a href="http://mgcrea.github.io/angular-strap/#/datepickers" rel="nofollow noreferrer">bs-datepicker</a> for save time as number in mongodb. In mongodb, it has <strong>time</strong> field with value i.e, <code>38700000</code> and <code>41400000</code> which are <code>16.15</code> and <code>17.00</code> respectively. </p>
  
  <p>Now, i want to format the above time in readable form. I am using <code>moment 2.16</code>. Here i try but unable to do <a href="http://jsfiddle.net/ua94tf40/1/" rel="nofollow noreferrer">jsfiddle</a></p>
  
  <pre><code>console.log(moment.unix(38700000).format('HH:mm')) //03:30, expect:16:15
  console.log(moment.unix(41400000).format('HH:mm')) //09:30, expect:17:00
  </code></pre>
  
  <p>And, how to convert from <strong>HH:mm</strong> to number. e.g <code>18:71</code> convert into number</p>