I think the clock function is based on seconds, so 1 day = 24 hrs * 60 min * 60 secs might work better?
(24*60*60)=86,400 seconds in a day.
http://www.trap17.com/forums/index.php?s=&...ndpost&p=206915Also, try this code found at the php.net site:
CODE
$this_day=date("Y-m-d H:i:s");
$tomorrow=$this_day + 86400;
This should work if the results from the date function can be manipulated in an arithmetic manner. That I do not know, but I can't see why not. The function probably returns the number of seconds since the Unix epoch of midnight Jan 1, 1970 (I think). Otherwise, this might be required:
CODE
$jump=1;
$evalday = mktime(strftime ("%d/%m/%Y", strtotime("+$jump days")));
Have a look at the php.net site for more info. Search for the date function at the top of the page.
Reply