重复规则+vCalendar

发布于 2024-07-30 11:20:31 字数 479 浏览 11 评论 0原文

重复规则: 该属性由属性名称 RRULE 标识。 此属性基于 XAPIA 的 CSA 的基本重复规则语法,定义重复 vCalendar 实体的规则或重复模式。 该属性的值是重复的模式规范。 下面是这个属性的一个例子:

RRULE:W2 TU TH          // Every other week, on Tuesday and Thursday
RRULE:D1 #10                // Daily for 10 occurrences
RRULE:YM1 6 7 #8            // Yearly in June and July for 8 occurrences
Support for this property is optional for implementations conforming to this specification.

所以对于这个“重复规则”是他们的任何算法,这样很容易开发它。

Recurrence Rule:
This property is identified by the property name RRULE. This property defines a rule or repeating pattern for a recurring vCalendar entity, based on the Basic Recurrence Rule Grammar of XAPIA's CSA. The value for the property is a pattern specification for the recurrence. The following is an example of this property:

RRULE:W2 TU TH          // Every other week, on Tuesday and Thursday
RRULE:D1 #10                // Daily for 10 occurrences
RRULE:YM1 6 7 #8            // Yearly in June and July for 8 occurrences
Support for this property is optional for implementations conforming to this specification.

so for this "Recurrence Rule" is their any algorithm so that it is easy to develop it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

深爱不及久伴 2024-08-06 11:20:31

对我来说,算法就是您在这里提到的..即“RRULE”..您可以对其进行“逆向工程”以开发应用程序/模块以将其输出回来..所以它取决于您(即开发人员)如何获得以此格式输出。

我知道这不是一件容易的事,因为在我想出一些接近的解决方案之前我已经玩了一段时间了。 您可以通过创建一个表(例如事件)来尝试一些基本的调度程序,其中包含一些字段,例如recurrence_type(daily,monthly,weekly,monthly_by_day,monthly_by_date),repeat_until,num_occurrences等。

要拥有RRULES的所有组合,它必须为了输出所需的格式非常复杂。 我在 PHP/MySQL 中尝试过。

To me algorithm is what you have mentioned here .. i.e. "RRULE" .. you can "reverse-engineer" it to develop an application/module to output it back .. so its on to you (i.e. developer) to how to get output in this format.

I know that its not an easy job as I have played with around for a time before I came up with somewhat near solution. You can try some basic scheduler by creating a table, say events, with some of the fields like recurrence_type (daily, monthly, weekly, monthly_by_day, monthly_by_date), repeat_until, num_occurences etc.

To have all of the combinations of the RRULES it has to be very complex in order to output the desired format. I had tried it in PHP/MySQL.

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