Forum Moderators: coopster
$actual_timestamp = time();
$remaining_seconds = $future_timestamp - $actual_timestamp;
$remaining_days = floor($remaining_seconds / (60*60*24));
I used this and then divided the $remaining days/7 to get the weeks.
I am off a day due to leap year. How do I fix this?
$actual_timestamp = time();
$remaining_days = unixtojd($future_timestamp) - unixtojd($actual_timestamp);
$remaining_weeks = floor($remaining_days/7);