title: How can I print a datetime in the xs:dateTime format in Perl?
body: <p>I would like to take a time stamp (e.g. 1263531246) and convert it to a string representation suitable for output to an XML file in an attribute field conforming to <code>xs:dateTime</code>. <code>xs:dateTime</code> expects something like:</p>
  
  <p><code>2002-05-30T09:30:10-06:00</code></p>
  
  <p>Ideally, I would use the form of output that includes offset from UTC (as above).  In this project, I am constrained to use Perl.  Any suggestions?</p>