PHP 日期循环库?
Ruby、Java 和 Python 都有几个非常好的库,可以让您处理 rfc2445的规则很好。
我已经对一个类/库进行了非常全面的搜索,它将处理规则并返回重复日期,但是我还没有找到 PHP 中的 1 个库可以做到这一点。
我将开始编写一个 PHP 库,其功能与 Ruby 的 ice_cube 类似,但是在开始之前我只是想确保我不会重新发明轮子。
这让我想到了这个问题:我是在重新发明轮子吗?我是否找不到一个已经编写的库来处理 PHP 中的日期重复?
Ruby, Java, and Python all have several very good libraries which allow you to handle rfc2445's rrule very well.
I've done an extremely comprehensive search for a class/library which will handle the rrule and return dates of recurrence, however I haven't found 1 library in PHP will do it.
I am going to begin to write a PHP library which similar functionality to Ruby's ice_cube, however before I begin I just want to ensure I'm not reinventing the wheel.
So that brings me to this question, am I reinventing the wheel? Did I fail to find a library already written which handles date recurrence in PHP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Gud 工作,但似乎 INTERVAL PARAM 不适用于每周、每月、每年的频率,与 http://www.ietf.org/rfc/rfc2445.txt
Gud work but it seems that the INTERVAL PARAM does not works well with WEEKLY,MONTHLY,YEARLY frequencies,there are differences in result as compared to http://www.ietf.org/rfc/rfc2445.txt
经过彻底的搜索后,我确定很可能没有用 PHP 编写的开源日期循环库,因此我编写了自己的库。
我很高兴地宣布,我已经发布了名为 When 的日期重复库的初始版本。
After a thorough search I've determined that there is most likely not an open source date recurrence library written in PHP, so I have written my own.
I'm pleased to announce that I have released the initial version of a date recurrence library called When.