note 11646 added to gmdate

From: Date: Thu, 01 Mar 2001 01:02:21 +0000
Subject: note 11646 added to gmdate
Groups: php.notes 
Request: Send a blank email to php-notes+get-11690@lists.php.net to get a copy of this message
Anyone porting a script from Perl to PHP might be interested in the following: function gmtime() { $t=time(); return gmdate('D M ',$t).sprintf('%2d',(int)gmdate('d',$t)).gmdate(' H:i:s Y',$t); } No, its not pretty, but it works; there is almost certainly a better way to do this... http://www.php.net/manual/en/function.gmdate.php

« previous php.notes (#11690) next »