RE: [PHP] simple date/now() question

From: Date: Tue, 28 Sep 2004 15:44:41 +0000
Subject: RE: [PHP] simple date/now() question
Groups: php.general 
Request: Send a blank email to php-general+get-198072@lists.php.net to get a copy of this message
[snip] data like: 20040928170708 20040916163619 etc Anybody have a function for this? or can help? am a bit confused because reading on google I see that there are 2 possible problems as MySql has its own time and PHP its own time (most of the time!).... [/snip] http://www.php.net/date http://www.php.net/time You jsut have to accept how MySQL stores a dattime stamp, if you know how to read it you can manipulate with several time/date functions in PHP. Taking one of your stamps above... 20040916163619 2004-09-16 16:36:19 Then you can test to see if 16:36:19 if greater than or less than 24 hours ago....

« previous php.general (#198072) next »