note 21277 added to function.strftime

From: Date: Mon, 06 May 2002 09:33:50 +0000
Subject: note 21277 added to function.strftime
Groups: php.notes 
Request: Send a blank email to php-notes+get-30256@lists.php.net to get a copy of this message
Using strftime() with a negative Unix Timestamp doesn't seem to work. I'm trying to format a birthdate before 1 January 1970. ... $time= mktime(0,0,0,$birthmonth,$birthday,$birthyear); return strftime("%e ",$time) . ucfirst(strftime("%B ",$time)) . strftime("%Y ",$time); } the returned string is a blank string everytime my $time is a negative timestamp. -- http://www.php.net/manual/en/function.strftime.php http://master.php.net/manage/user-notes.php?action=edit+21277 http://master.php.net/manage/user-notes.php?action=delete+21277 http://master.php.net/manage/user-notes.php?action=reject+21277

« previous php.notes (#30256) next »