note 103163 added to function.date

From: Date: Tue, 29 Mar 2011 18:38:24 +0000
Subject: note 103163 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-178312@lists.php.net to get a copy of this message
If you are simply trying to generate a date set in the future (for example, to setup a conditional to check if a value was created a month ago). You can use this. print date('m-d-Y',strtotime('+1 month', '1301413787')); // generates 04-29-2011 This syntax was not noted in an easy to read place within the strtotime() or date() function pages, so just adding as note. ---- Server IP: 69.147.83.197 Probable Submitter: 157.166.175.129 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/103163 Del: integrated -- https://master.php.net/note/delete/103163/integrated Del: useless -- https://master.php.net/note/delete/103163/useless Del: bad code -- https://master.php.net/note/delete/103163/bad+code Del: spam -- https://master.php.net/note/delete/103163/spam Del: non-english -- https://master.php.net/note/delete/103163/non-english Del: in docs -- https://master.php.net/note/delete/103163/in+docs Del: other reasons-- https://master.php.net/note/delete/103163 Reject -- https://master.php.net/note/reject/103163 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178312) next »