PHP DateTime类就像v5.3 for PHP 5.2一样 [英] PHP DateTime class just like v5.3 for PHP 5.2
问题描述
我已经在应用程序中发现了一些问题,像DateTime :: diff这样的方法将会得到很大的帮助,但是我的PHP 5.2主机不支持DateTime :: diff或者其他的5.3。 / p>
任何人都可以指向类似于v5.3中PHP的DateTime类的类实现,但是在PHP 5.2中工作?
提前感谢
我在php5.2应用中使用以下包装类: http://pastebin.ca/2051944 。直到php5.3被发布 - 它节省了很多时间
I've found a few problems in applications I've been doing where methods like DateTime::diff would be of much assistance, but my host with PHP 5.2 does not support DateTime::diff or any other from 5.3.
Can anyone point to a class implementation similar to PHP's DateTime class from v5.3, but working for PHP 5.2?
Thanks in advance
I use following wrapper class in my php5.2 apps: http://pastebin.ca/2051944. Untill php5.3 was released - it saves much my time
这篇关于PHP DateTime类就像v5.3 for PHP 5.2一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!