note 108228 added to dateinterval.construct
| From: | buvinghausen at gmail dot com | Date: | Mon, 09 Apr 2012 18:50:38 +0000 |
| Subject: | note 108228 added to dateinterval.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187030@lists.php.net to get a copy of this message | ||
I think it is easiest if you would just use the sub method on the DateTime class.
<?php
$date = new DateTime();
$date->sub(new DateInterval("P89D"));
----
Server IP: 69.147.83.197
Probable Submitter: 66.248.177.34
----
Manual Page -- http://www.php.net/manual/en/dateinterval.construct.php
Edit -- https://master.php.net/note/edit/108228
Del: integrated -- https://master.php.net/note/delete/108228/integrated
Del: useless -- https://master.php.net/note/delete/108228/useless
Del: bad code -- https://master.php.net/note/delete/108228/bad+code
Del: spam -- https://master.php.net/note/delete/108228/spam
Del: non-english -- https://master.php.net/note/delete/108228/non-english
Del: in docs -- https://master.php.net/note/delete/108228/in+docs
Del: other reasons-- https://master.php.net/note/delete/108228
Reject -- https://master.php.net/note/reject/108228
Search -- https://master.php.net/manage/user-notes.php