title: How to convert hours and minutes to minutes with moment.js?
body: <p>I need to convert hours and minutes in minutes values. With pure JavaScript Date object I do the following:</p>
  
  <pre><code>var d = new Date();
  var minutes = d.getHours() * 60 + d.getMinutes();
  </code></pre>
  
  <p>I've just switched to <a href="http://momentjs.com/">moment.js</a> and looking for better solution likes the following:</p>
  
  <pre><code>var minutes = moment(new Date()).toMinutes()
  </code></pre>
  
  <p>Is there is something like this?</p>