|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1998-05-22 15:36 UTC] williams at web-arch dot com
$YR=1995;
$MN=4;
$DY=1;
/* this works: */
$todayts = mktime(0,0,01,$MN,$DY,$YR);
echo "TODAYTS TEST:" . Date("M d y, H:i:s",$todayts);
/* this gets only the hour correct, otherwise it uses the current date and time */
$midnight="0,0,01,$MN,$DY,$YR";
$todayts = mktime($midnight);
echo "|$midnight|TODAYTS TEST:" . Date("M d y, H:i:s",$todayts);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 17:00:01 2025 UTC |
As Lars said, this isn't a bug at all. Sending a one coma delimited string is not the same as sending several arguments to a function. You can use Lars' suggestion and use explode(), or you can do something like eval("\$time=mktime($str);");