basicly i get the current timestamp. and have a set future time stamp.If i subtract the current time stamp from the future one am i right in believeing that i have the number of seconds left untill that future time is reached ?
if so i am totaly confuesed as to how to perfom maths on it. for example i want to display the weeks,days,hours and mins left untill the future date.
i can get the weeks by doing somethink like the following
$timeleft_timestamp = $future_timestamp - $current_timestamp; $weeks = $timeleft_timestamp / 60 / 60 / 24 / 7;
is this correct. if so how do i go about getting the days,hours,mins.
im left with a number with alot of decimal places should i just use the round() function. will this be accurate ?