Re: Days between two dates

From: Date: Mon, 07 May 2001 13:42:28 +0000
Subject: Re: Days between two dates
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51740@lists.php.net to get a copy of this message
It really Work !!! Sorry, thath was my syntax error! Thanks very much !! Rosen Marinov ""Boget, Chris"" <Chris.Boget@wild.net> wrote in message news:4040BBE81A9AD411BD27009027887A7C042CDF@tiger.wild.net... > > Sorry, > > it doesn't work !! > > Why do you say that? I just tested it and it worked. > It returned: > > "115.31296296296" > > "115" being the number of days > ".31296296296" is the fraction of the day that is the > difference of hours between the two times. > > mktime() and date( "U" ) return a unix timestamp > which is made up of both date _and_ time. > > Chris >

« previous php.general (#51740) next »