title: Round (epoch) time to highest minute
body: <p>I'm trying to get the epoch time from exactly 1 hour ago, rounded to the highest minute.
  E.g: <strong>19:17:01</strong> should become <strong>19:18:00</strong> &amp; <strong>19:17:59</strong> should become <strong>19:18:00</strong> etc.</p>
  
  <p>I already know how to convert Date (Minus 1 hour) to Epoch:</p>
  
  <pre><code>var dat = new Date();
  dat.setHours( dat.getHours() - 1 );
  var epochstart = Date.parse(dat)
  console.log(epochstart) //Returns e.g. 19:17:01 in epoch (Milliseconds) time
  </code></pre>
  
  <p>This works and everything but how would I round the date to the minute UP?</p>
  
  <p>And, if possible, I want to convert the milliseconds to seconds (I can just remove the last 3 chars)</p>