note 39842 deleted from ref.datetime by tomsommer

From: Date: Thu, 12 Feb 2004 19:21:55 +0000
Subject: note 39842 deleted from ref.datetime by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65059@lists.php.net to get a copy of this message
Note Submitter: kromanz@mail.ru aka koshak ---- function date_diff($date1, $date2) { $s = strtotime($date2) - strtotime($date1); $d = intval($s/86400); return $d; } function date_sum($date3, $cnt_day) { $r = ((intval($cnt_day*86400)) + (strtotime($date3))); $res = date("Y-m-d",$r); return $res; }

« previous php.notes (#65059) next »