Re: DateInterval
| From: | MIke Alaimo | Date: | Fri, 01 May 2009 00:51:30 +0000 |
| Subject: | Re: DateInterval | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292167@lists.php.net to get a copy of this message | ||
Ah. This makes perfect sense. Good idea.
Mike
Raymond Irving wrote:
--- On Wed, 4/29/09, MIke Alaimo <lists@reptiliannature.org> wrote:Raymond, have you tried using DateTime::modify? It appears to work like strtotime. also DateTime::format works like date. At least as far as I can tell.From the little documentation that I've seen it appears that it's similar to strtotime and date but it would be very good if the PHP devs could make strtotime() and date() become wrappers for DateTime::modify and DateTime::format. This way we dont hae to modify our code when moving to a version of PHP that supports the new DateTime class. __ Raymond Irving