note 82292 deleted from function.mktime by danbrown

From: Date: Sun, 20 Jul 2008 03:29:22 +0000
Subject: note 82292 deleted from function.mktime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142065@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- While you might expect mktime() to give you the time of midnight if the hours parameter is set to zero, it may not. Instead it returns noon in this example. PHP 5.2.4. Example: $ts_now = date('Y-m-d h:i:s'); // 2008-04-04 07:30:00 $ts_then = date('Y-m-d h:i:s', mktime(0, 0, 0, date("m"), date("d"), date("Y")+1)); // 2009-04-04 12:00:00

« previous php.notes (#142065) next »