title: PHP Twitter API search/tweets GET tweets from last hour ONLY
body: <p>Hi I have been looking around on the internet and haven't been able to find a solution yet. I want to only get the tweets from the past hour which have a certain hashtag.</p>
  
  <p>I am pulling the tweets in with that hashtag but I dont know how to only get the ones from the past hour. </p>
  
  <p>Here is some example data:</p>
  
  <p><a href="https://i.stack.imgur.com/3nni6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3nni6.png" alt="Example Data"></a></p>
  
  <p>As you can see there is a created_at date there but I dont know how to use this to get the ones from the past hour. I think this would be the only way that I would be able to do it. </p>
  
  <p>The best way I can think of doing it is converting that date into a UNIX timestamp and then checking if it was tweets in the last hour. But there is a lot of data to go through and this doesnt seem like a very good solution but its all I cant think of.</p>
  
  <p>If that is the only solution there is, would some given me an example on how to convert that date to a UNIX timestamp in PHP. If you have a different solution I would love to see a detailed example :) Thanks</p>
  
  <p>You may also find this link useful <a href="https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets" rel="nofollow noreferrer">https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets</a></p>