note 99431 added to function.date-add

From: Date: Tue, 17 Aug 2010 12:08:51 +0000
Subject: note 99431 added to function.date-add
Groups: php.notes 
Request: Send a blank email to php-notes+get-171762@lists.php.net to get a copy of this message
function add_date($givendate,$day=0,$mth=0,$yr=0) { $cd = strtotime($givendate); $newdate = date('Y-m-d h:i:s' , mktime( date('h',$cd), date('i',$cd), date('s',$cd), date('m',$cd)+$mth, date('d',$cd)+$day, date('Y',$cd)+$yr ) ); return strtotime($newdate); } ---- Server IP: 115.165.178.40 Probable Submitter: 121.138.173.151 (proxied: 121.138.173.151) ---- Manual Page -- http://www.php.net/manual/en/function.date-add.php Edit -- https://master.php.net/note/edit/99431 Del: integrated -- https://master.php.net/note/delete/99431/integrated Del: useless -- https://master.php.net/note/delete/99431/useless Del: bad code -- https://master.php.net/note/delete/99431/bad+code Del: spam -- https://master.php.net/note/delete/99431/spam Del: non-english -- https://master.php.net/note/delete/99431/non-english Del: in docs -- https://master.php.net/note/delete/99431/in+docs Del: other reasons-- https://master.php.net/note/delete/99431 Reject -- https://master.php.net/note/reject/99431 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171762) next »