title: Add two time variables in javascript
body: <p>How could i add two time variable in javascript. </p>
  
  <p>for example1: </p>
  
  <pre><code>var a = 17.30hrs 
  var b=1.30hrs 
  </code></pre>
  
  <p>so  total should be <code>(a+b) = 19.00hrs</code></p>
  
  <p>example2: </p>
  
  <pre><code>var a = 23:00hrs 
  var b = 1.30hrs
  </code></pre>
  
  <p>so total should be <code>(a+b) = 00.30hrs</code></p>
  
  <p>Here we can use <code>24 hrs time format</code>.</p>
  
  <p>Thanks in advance for the help</p>