iCAL event on the last day of the Month

时间:2017-04-10 01:23:17

标签: icalendar rfc5545

I need to create an event that falls on the last day of the month. If that day is a weekend I would like the event to show on the previous Friday. Thank you for any assistance you can provide.

1 个答案:

答案 0 :(得分:1)

除了直接答案,通过阅读RFC5545

可以找到更通用的解决方案

您所说的是您希望在给定的重复发生时发生的事件 详细信息在event recurrence rule中,其中定义了组件RRULE以及其他组件VEVENTVALARM)的属性VTODO以及关联特性

所以:

  

RRULE

每月

  

RRULE:FREQ =月刊;

在工作日:

  

RRULE:FREQ = MONTHLY; BYDAY = MO,星期二,星期三,星期四,星期五;

仅限该月的最后一个工作日

  

RRULE:FREQ = MONTHLY; BYDAY = MO,星期二,星期三,星期四,星期五; BYSETPOS = -1

相关问题