title: PHP Time() to Google Calendar Dates time format
body: <p>I have PHP times for the start and end times of an event.  This is a simple <code>&lt;?php time(); ?&gt;</code> for some future date's start and end time.  I was wondering if anyone knew of a way to take either the numerical format (PHP time()) or taking some string value representing that time (I could do a <code>strtotime($sometimevalue);</code>) and turn it into the required Google Calendar time format.</p>
  
  <p>Enough talking - here is an example of the time format:</p>
  
  <pre><code>20150107T003000Z/20150107T023000Z
  </code></pre>
  
  <p>This equates to January 6th, 2015 at 5:30 PM to January 6th, 2015 at 7:30PM.</p>
  
  <p>So can someone explain to me how to translate a <code>time()</code> to this format?</p>