排除 iCalendar 中的时间段
我有一个非常简单的事件“每周一 9 点到 5 点”,并且在某些时间段不发生此事件。如2011年8月7日至2011年10月24日。在 iCalendar 中表示这一点的最佳方式是什么?
很多 EXDATE?特殊的 EXRULE?
i have a very simple vevent "every Monday 9 to 5" and some time periods where this event doesn't take place. like 7.8.2011 to 24.10.2011. What is the best way to represent this in iCalendar?
a lot of EXDATEs? special EXRULEs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
噢,亲爱的,
Exrule 现在在 RFC 5545 中已被弃用,所以最好跳过那个(尽管这将是最简洁的,并且大多数 ics s/w 可能仍然可以处理它(就像我的:),为了兼容性)
EXDATES 是有效的,但是天哪,这会如果您指的是从 8 月 7 日到 10 月 24 日的整个期间,那就很麻烦了,您必须输入每个工作日
您可能只需要创建两个事件 - 尽管其中一个事件可以“相关” 他们。
我还没有尝试过,一直在考虑是否出于不同的原因,但有一个“相关”的概念,带有修饰符RELTYPE(父母,兄弟姐妹等)
RELATED-TO;RELTYPE = SIBLING:19960401-080045-4000F192713 @
example.com
属性名称:RELATED-TO
用途:此属性用于表示关系或
一个日历组件与另一个日历组件之间的引用。
值类型:TEXT
属性参数:IANA、非标准和关系类型
可以在此属性上指定属性参数。
一致性:该属性可以在“VEVENT”中指定,
“VTODO”和“VJOURNAL”日历组件。
说明:该属性值由持久的、全局的
另一个日历组件的唯一标识符。这个值将
在日历组件中由“UID”属性表示。
Oh dear,
Exrule is deprecated now in RFC 5545, so best skip that one (although that would be neatest and most ics s/w probably still copes with it (like mine :), for compatibility )
EXDATES are valid, but gosh that would be cumbersome if you mean the whole period from 7 August to 24 October, you'd have to enter every week day
You possibly have to just create two events - although one could 'relate' them.
I have not tried it yet, have been thinking about if for a different reason, but there is the concept of 'RELATED-TO' with modifer RELTYPE (PARENT, SIBLING etc)
RELATED-TO;RELTYPE=SIBLING:19960401-080045-4000F192713@
example.com
Property Name: RELATED-TO
Purpose: This property is used to represent a relationship or
reference between one calendar component and another.
Value Type: TEXT
Property Parameters: IANA, non-standard, and relationship type
property parameters can be specified on this property.
Conformance: This property can be specified in the "VEVENT",
"VTODO", and "VJOURNAL" calendar components.
Description: The property value consists of the persistent, globally
unique identifier of another calendar component. This value would
be represented in a calendar component by the "UID" property.