Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我一直在做的应用程序中发现了一些问题,其中 DateTime::diff 之类的方法会有很大帮助,但是我的 PHP 5.2 主机不支持 DateTime::diff 或 5.3 中的任何其他方法。
任何人都可以指出一个类似于 v5.3 中 PHP 的 DateTime 类但适用于 PHP 5.2 的类实现吗?
提前致谢
我在我的 php5.2 应用程序中使用以下包装类:http: //pastebin.ca/2051944。直到 php5.3 发布 - 它节省了我很多时间