Please help me understand gmmktime()

From: Date: Wed, 11 Feb 2004 20:25:53 +0000
Subject: Please help me understand gmmktime()
Groups: php.general 
Request: Send a blank email to php-general+get-177455@lists.php.net to get a copy of this message
Hello: Environment: Linux server PHP 4.3.4 This code: echo '<br>'.strftime('%T %Z',mktime()).', Timestamp='.mktime(); echo '<br>'.strftime('%T GMT',gmmktime()).', Timestamp='.gmmktime(); yields this result: 23:52:08 EST, Timestamp=1076475128 18:52:08 GMT, Timestamp=1076457128 Why? GMT should be 5 hours ahead of EST, not 5 behind. Right? What am I missing here?? Richard

« previous php.general (#177455) next »