You can replace
$ctime($asctime(yyyy-mm-dd HH:nn:ss))
with just
If you are looking for a more accurate display of the age calculated, a more complex method is required, since months and years have varying lengths. Months range from 28 - 31 days, and years from 365 - 366 days.
If not, please explain the reason for your post.