Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

[PHP] Re: how many day between the two time format From: Justin Garrett (usjgarrett <email protected>)
Date: 09/30/01

If both times are UNIX timestamps

$seconds_per_day = 60 * 60 * 24;
$dif = $today - $last_day;
$days = (int)($dif / $seconds_per_day);

--
Justin Garrett

"Yang" <jakry <email protected>> wrote in message news:20010930192559.12059.qmail <email protected> > i want to check about how many day between the two time format > like > $last_day=time format; > $today=time(); > $between_day=?????($today-$last_day); > echo $between_day is the between day... > > > >

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>