PHP 日期循环库?

发布于 2024-09-16 02:59:04 字数 412 浏览 1 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北座城市 2024-09-23 02:59:13

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

看春风乍起 2024-09-23 02:59:11

经过彻底的搜索后,我确定很可能没有用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文