Originally posted by Mucello
Well, in a sense the calculation is still be rounded. This is a way around the problem, not a solution to it. What if it should be rounded down instead of up? Then my calculation would be off by one day and that's no good.
i think the problem is working with the time 00:00:00 of the day.
a stamp that is rounded down will be 1 day earlier as you mentioned, so maybe another time will provide loosing a hole day.
something like
$date1 = mktime( 10, 10, 10, 1, 1, 2003 );
$date2 = mktime( 10, 10, 10, 8, 12, 2003 );
if this timestamp is rounded, the stamp will still be of the same day.