Date question

From: Date: Sun, 02 Mar 2003 05:39:37 +0000
Subject: Date question
Groups: php.general 
Request: Send a blank email to php-general+get-137757@lists.php.net to get a copy of this message
Greetings all. I have used strtotime() function in the past, and done this: if($time >= strtotime('24 hours ago')) { $new = "new!"; } with it being in UNIX time stamp .. But now I have a different client where the time stamp in mysql is formatted like: 2002-08-29 10:53:09 what function would I use in this case, date() ? If so, how would I do the same exact thing? thanks. warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com

« previous php.general (#137757) next »