Bug #14043 Updated: gmtime() function would be nice

From: Date: Tue, 13 Nov 2001 19:12:24 +0000
Subject: Bug #14043 Updated: gmtime() function would be nice
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70377@lists.php.net to get a copy of this message
ID: 14043 Updated by: jimw Reported By: webmaster@mumineen.org Old Status: Open Status: Bogus Bug Type: Feature/Change Request Operating System: PHP Version: 4.0.6 New Comment: the output of time() is already in gmt. Previous Comments: ------------------------------------------------------------------------ [2001-11-13 14:00:18] webmaster@mumineen.org It would be great to have a gmtime() function, just like the other "gm" time functions. Currently, we use something to the effect of: function gmtime() { $t = time(); $gm_time = gmdate('D M ',$t).sprintf('%2d',(int)gmdate('d',$t)).gmdate(' H:i:s Y',$t); return strtotime($gm_time); } ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14043&edit=1

« previous php.dev (#70377) next »