Fw: [PHP] date functions

From: Date: Mon, 23 Sep 2002 21:14:56 +0000
Subject: Fw: [PHP] date functions
Groups: php.general 
Request: Send a blank email to php-general+get-117326@lists.php.net to get a copy of this message
You should be working with UNIX timestamps here. Convert the dates to human readble only after you've done the calcuations. -Kevin ----- Original Message ----- From: "Patrick" <pafo@pafo.net> To: <php-general@lists.php.net> Sent: Monday, September 23, 2002 2:38 PM Subject: [PHP] date functions > i got 2 dates and i want to know how many minutes between em,, like: > > $date1 = date("Y-m-j H:i"); > $date2 = date("Y-m-j H:i", strtotime("now") + 1800); > > $minutes = date_something($date1, $date2); > > echo "there are $minutes between, $date1 and $date2"; > > regards > patrick > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#117326) next »