title: ISO8601 Date in PHP with Format YYYY-MM-DDTHH:MM:SS.mmmmmmmZ
body: <p>I am trying to generate a timestamp in PHP for use with an API. I cannot seem to get the timestamp to format as it should. The proper format is:</p>
  
  <p><strong>UTC ISO8601 DateTime format:</strong> YYYY-MM-DDTHH:MM:SS.mmmmmmmZ </p>
  
  <p><strong>Example:</strong> 2013-04-24T11:11:50.2829708Z</p>
  
  <p>Edit, Let me clarify on the actual issue I am having:</p>
  
  <p>The 'Z' Property is returning the timezone offset in seconds. I need the offset returned as date('c') returns it.</p>
  
  <p>Example:
  +01:00 instead of 3600</p>
  
  <p>Is there a built in function for this in PHP?</p>