Ah.  This makes perfect sense.  Good idea.


Raymond Irving wrote:

--- On Wed, 4/29/09, MIke Alaimo <li...@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

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to