Hi.

I'm using the timestamp format (AAMMDDHHMMSS) on my session.

how can I know the minutes between two dates.

I'm doing:

      $date       = $row_secao['date'];
      $date_now=date("ymdHis");
      $x=$date_atual-$date;
      if ($x > 1000) {
        echo "Session expired.";
      }

but I have a problem when turns the hour, like this:

date=010803105958
date_now=010803110518

the sub is 4500 (45 minutes!), but in fact, the real time between is 6
minutes...

thanks.

Augusto


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to