note 74634 deleted from ref.datetime by bjori

From: Date: Sat, 21 Apr 2007 08:13:20 +0000
Subject: note 74634 deleted from ref.datetime by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125748@lists.php.net to get a copy of this message
Note Submitter: Xanerol at fraise dot be Reason: useless ---- <?php echo getdiffinfulldate(time(),mktime(0, 0, 0, 07, 03, 1987)); function getdiffinfulldate ($from,$to) { $diff=$from-$to; $years=floor($diff/31536000); $diff=$diff-($years*31536000); $months=floor($diff/2592000); $diff=$diff-($months*2592000); $days=floor($diff/86400); $diff=$diff-($days*86400); $mins=floor($diff/60); $diff=$diff-($mins*60); $secs=$diff; return "$years years $months months $days days $mins minutes $secs secondes"; } // 19 years 9 months 27 days 15 min 20 secs ?>

« previous php.notes (#125748) next »