note 74911 added to function.date

From: Date: Thu, 03 May 2007 16:52:45 +0000
Subject: note 74911 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-126153@lists.php.net to get a copy of this message
Another method for getting close to ISO8601 using PHP4 (should cover all versions). This format gets you compliant RDF/RSS feed dates: $sISO8601=date('Y-m-d\Th:i:s',$nTimestamp). substr_replace(date('O',$nTimestamp),':',3,0); The main limitation I'm aware of is the non-compliant year around new year. ---- Server IP: 194.145.210.3 Probable Submitter: 80.45.33.197 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/74911 Del: integrated -- https://master.php.net/note/delete/74911/integrated Del: useless -- https://master.php.net/note/delete/74911/useless Del: bad code -- https://master.php.net/note/delete/74911/bad+code Del: spam -- https://master.php.net/note/delete/74911/spam Del: non-english -- https://master.php.net/note/delete/74911/non-english Del: in docs -- https://master.php.net/note/delete/74911/in+docs Del: other reasons-- https://master.php.net/note/delete/74911 Reject -- https://master.php.net/note/reject/74911 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126153) next »