title: JavaScript - Converting a Date() into seconds
body: <p>I'm using the Hacker News API made at Algolia here:</p>
  <p><a href="https://hn.algolia.com/api" rel="noreferrer">https://hn.algolia.com/api</a></p>
  <p>I'm a bit confused as it says to search for posts since a certain time it says to run the following query:</p>
  <p>Comments since timestamp <code>X</code> (in second)
  <code>http://hn.algolia.com/api/v1/search_by_date?tags=comment&amp;numericFilters=created_at_i&gt;X</code></p>
  <p>It says to replace <code>X</code> with a timestamp in seconds, but how exactly would you do this? Let's say the last post I have is at <code>2015-08-25T15:35:58.000Z</code>. How exactly would I run this query to search for posts since that date? I don't know how to convert this date to seconds...</p>