strtotime Question

From: Date: Wed, 28 Jan 2004 04:05:09 +0000
Subject: strtotime Question
Groups: php.general php.general 
Request: Send a blank email to php-general+get-176001@lists.php.net to get a copy of this message
Hi everyone, I made the mistake of using strtotime("day") instead of strtotime("today") to get the current time. I was just curious, what is strtotime("day") represent? Below is what I used to test the "day" and "today" parameters: Testing One Minute Difference<br> <? echo min_diff(); function min_diff() { $now = strtotime("today");//Return value is 60 //$now = strtotime("day");//Return value is 86400 $onemin = strtotime("-1 minute"); return $now-$onemin; } ?> Thanks in advance. -Gohaku

« previous php.general (#176001) next »