title: convert a time-string like "11:00" or "14:00" to decimal time like 1.75?
body: <p>I found this function on the php-manual "date".</p>
  
  <pre><code>&lt;?php 
  // Converts a unix timestamp to iCal format (UTC) - if no timezone is 
  // specified then it presumes the uStamp is already in UTC format. 
  // tzone must be in decimal such as 1hr 45mins would be 1.75, behind 
  // times should be represented as negative decimals 10hours behind 
  // would be -10 
  
      function unixToiCal($uStamp = 0, $tzone = 0.0) { 
  
          $uStampUTC = $uStamp + ($tzone * 3600);        
          $stamp  = date("Ymd\THis\Z", $uStampUTC); 
  
          return $stamp;        
  
      } 
  ?&gt;
  </code></pre>
  
  <p>I have a variable like <code>$event_time[0]</code> that holds a timeformat like this <code>14:00</code> which would be 2pm. How can I convert this timeformat so that is decimal to pass it along to the <code>unixToiCal()</code> function above?</p>
  
  <p>Thanks for your response.</p>
  
  <p><strong>Update:</strong>
  Well, it seems like I'm completely confused. Thanks guys for clearing things up. Didn't really get what the second param of the function was for. I'm from Austria, so the UTC offset should be <code>+2</code> hours, right. </p>
  
  <p>There is another question I have with the <code>strtotime()</code> method.</p>
  
  <p>I have two variables … <code>$time</code> and <code>$date</code> … the problem I have with this is that <code>$date</code> already is a timestamp like <code>1347667200</code> and <code>$time</code> is a "string" (i guess) <code>11:00</code> or <code>14:00</code>.</p>
  
  <p>How can I combine those two values two a timestamp that represents the exact date and the time?</p>