note 102521 deleted from class.dateinterval by googleguy
| From: | googleguy@php.net | Date: | Sat, 12 Jan 2013 11:01:21 +0000 |
| Subject: | note 102521 deleted from class.dateinterval by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192979@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
You cannot use the ++ operator on the DateInterval fields; it has no effect on the field value. To
increase a field value, you have to do it the long way, for example $diff->h = $diff->h + 1;
instead of $diff->h++; (observed in PHP 5.3.1).