note 46238 deleted from function.date by tularis
| From: | tularis@php.net | Date: | Sun, 30 Jan 2005 14:43:15 +0000 |
| Subject: | note 46238 deleted from function.date by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-84225@lists.php.net to get a copy of this message | ||
Note Submitter: ryan at nebogroup dot com
----
When converting a UNIX Timestamp to W3CDTF for RSS or otherwise in an array:
<?php
echo substr($row['timestampvar'],0,10)."T"
.substr($row['timestampvar'],11,8)
.substr(date('O'),0,3).":"
.substr(date('O'),3,2);
?>