title: PHP Check if current time is before specified time
body: <p>I need to check in PHP if the current time is before 2pm that day.</p>
  
  <p>I've done this with <code>strtotime</code> on dates before, however this time it's with a time only, so obviously at 0.00 each day the time will reset, and the boolean will reset from <code>false</code> to <code>true</code>.</p>
  
  <pre><code>if (current_time &lt; 2pm) {
     // do this
  }
  </code></pre>