note 63815 deleted from function.mktime by bjori
| From: | bjori@php.net | Date: | Thu, 01 Jun 2006 18:36:17 +0000 |
| Subject: | note 63815 deleted from function.mktime by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-112802@lists.php.net to get a copy of this message | ||
Note Submitter: deanxx at gmail dot com
----
I was trying calculate the age of a people withing a system...based in birth date and local date...
I tried to make using some definitions...but...I only make it happen using this...
$day = 20;
$month = 07;
$year = 1980;
$tmp1=mktime(0,0,0,$day,$month,$year);
$tmp2 = mktime();
$res = ($tmp2 - $tmp1);
$final_date = date('Y',$res);
echo $final_date-1970;