Re: strtotime Question

From: Date: Wed, 28 Jan 2004 04:23:26 +0000
Subject: Re: strtotime Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176004@lists.php.net to get a copy of this message
Hi, On Tue, 27 Jan 2004 23:05:09 -0500 gohaku <gohaku@earthlink.net> wrote: > 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; > } > ?> 60 seconds * 60 min. * 24 hrs. = 86400? -- - E - __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/

« previous php.general (#176004) next »