Hi all,
I have the following code,
All my results are a day out. When I find out the months and years, there are 70 extra years and 1 extra month as well!
I don't understand why this happens, I can't seem to accurately subtract 70 years, 1 month and a day either
Any help would be really appreciated
I have the following code,
Code:
$start = strtotime($row["dateTime"]);
$end = strtotime($row["dateTimeFin"]);
$result = ($end - $start);
$conv=gmdate("d \d\a\y\s H \h\o\u\\r\s\ i \m\i\\n\s\ s \s\e\c\s",$result);
All my results are a day out. When I find out the months and years, there are 70 extra years and 1 extra month as well!
I don't understand why this happens, I can't seem to accurately subtract 70 years, 1 month and a day either
Any help would be really appreciated