time stuff
| From: | natesanden at hotmail dot com | Date: | Tue, 11 Dec 2001 00:17:31 +0000 |
| Subject: | time stuff | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77251@lists.php.net to get a copy of this message | ||
Was wondering if anyone could help?
suppose the date is 12-10-01
--------------------------------------
$timestamp = time();
//this is the "sent on" date
$yd_expl = explode(':',08-01-01);
$today=mktime(0,0,0,strftime('%m',$timestamp),strftime('%d',$timestamp),strftime('%y',$timestamp));
$sent=mktime($yd_expl[0],$yd_expl[1],$yd_expl[2]);
if($today < $sent)
{ $bgcolor="white"; }
else
{ $bgcolor="lightblue"; }
----------------------------------------
it returns $today: 1007971200
$sent: 1008000000
I want it to return a smaller number for sent on (since the sent on date is before todays date),
than it does for today
Thanks