title: Convert 12hour clock to 24hour clock PHP
body: <p>I would really love some help with this.</p>
  
  <p>Currently when I use the following PHP, <strong>my output is 02:42</strong>.
  What <strong>I would like is 14:42</strong>.</p>
  
  <pre><code>&lt;?php 
  
  date_default_timezone_set('Europe/London'); 
  
  echo date("h:i",time()); 
  
  ?&gt;
  </code></pre>
  
  <p><strong>Also</strong>, is it possible to then use the converted time value to create a conditional statement to say <strong>if greater than 10am, do this</strong>.</p>
  
  <p>Many thanks for any pointers</p>