Re: DateInterval

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux