Re: how many day between the two time format
| From: | Justin Garrett | Date: | Mon, 01 Oct 2001 01:14:12 +0000 |
| Subject: | Re: how many day between the two time format | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69402@lists.php.net to get a copy of this message | ||
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@bbcode.com.tw> wrote in message
news:20010930192559.12059.qmail@pb1.pair.com...
> 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...
>
>
>
>