Re: DateInterval

From: Date: Thu, 30 Apr 2009 04:46:49 +0000
Subject: Re: DateInterval
Groups: php.general 
Request: Send a blank email to php-general+get-292142@lists.php.net to get a copy of this message
--- 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

« previous php.general (#292142) next »