ID: 14043
Updated by: jimw
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to