I'm trying to calculate an age in php, but just want to increase the age if the birthtime is also reached, not only the birthday date. Here is what I got so far:
$today = date("Y-m-d\TH:i:sO");
$bday = "1987-01-01T15:30:00+0200";
$diff = abs(strtotime($bday) - strtotime($today));
$age = floor($diff / (365*60*60*24));
It works if the day is reached, but is not time-sensitive. I appreciate any help!