time getdate GMT

From: Date: Mon, 14 May 2001 10:52:10 +0000
Subject: time getdate GMT
Groups: php.general 
Request: Send a blank email to php-general+get-52678@lists.php.net to get a copy of this message
Hi, I'm new to PHP. I want to have the GMT Time in extra values (for instance a array with year, mon, day, hour, ....) The best way I've found is: $idtGMTime = time() - date("Z"); $aGMTime = getdate($idtGMTime); Any other suggestions? Why isn't there a function like getgmdate() (as gmtime() in Perl). Note: PHP 4.0.4 Win32 CGI returns a wrong sign for date("Z"). At 4.0.5 it's ok. 4.0.4pl1 mod_PHP is correct, too. Hannes Schmiderer

« previous php.general (#52678) next »