Minutes between tow dates

From: Date: Fri, 03 Aug 2001 14:21:58 +0000
Subject: Minutes between tow dates
Groups: php.general 
Request: Send a blank email to php-general+get-61131@lists.php.net to get a copy of this message
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

« previous php.general (#61131) next »