note 21277 deleted from function.strftime by derick
| From: | derick@php.net | Date: | Sun, 14 Aug 2005 12:02:03 +0000 |
| Subject: | note 21277 deleted from function.strftime by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93613@lists.php.net to get a copy of this message | ||
Note Submitter: kemps at free dot fr
----
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.