note 18980 added to function.date

From: Date: Tue, 12 Feb 2002 15:18:35 +0000
Subject: note 18980 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-26510@lists.php.net to get a copy of this message
Just a note about a differing behaviour between this, and strftime. The 'T' option here always shows the CURRENT timezone for the computer. The '%Z' equivilant option for strftime, shows the timezone AT THAT TIME. Meaning the following (on my machine): strftime("%Z", 100121210); # returns EST strftime("%Z", 120121210); # returns EDT However: date("T", 100121210); # returns EST date("T", 120121210); # returns EST Note; however, that the 'O' option will in fact change. Going from -0500 to -0400. -- http://www.php.net/manual/en/function.date.php http://master.php.net/manage/user-notes.php?action=edit+18980 http://master.php.net/manage/user-notes.php?action=delete+18980 http://master.php.net/manage/user-notes.php?action=reject+18980

« previous php.notes (#26510) next »