note 40867 rejected from function.strftime by cece

From: Date: Wed, 17 Mar 2004 15:16:37 +0000
Subject: note 40867 rejected from function.strftime by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66967@lists.php.net to get a copy of this message
Note Submitter: cristiane19sp@hotmail.com ---- Tratar data, subtrae e obtem a diferença em dias <?php $day=15;//the day of birth variable $month=03;//the month of birth variable $year=2004;// the year of birth variable $day_h=17;//the day of birth variable $month_h=03;//the month of birth variable $year_h=2004;// the year of birth variable $now=mktime(0,0,0,$month_h,$day_h,$year_h); $timebirth=mktime(0,0,0,$month,$day,$year); echo $agetime=$now-$timebirth.'<br>'; echo $agetime/3600/24; Resultado eh 2 dias. ?>

« previous php.notes (#66967) next »