Exclusive/Inclusive 根据 RFC5545 和 Fullcalendar 中带有时间部分的事件中的 DTEND,如何正确执行?

Exclusive/Inclusive DTEND according to RFC5545 and Fullcalendar in event with time part, how to do it right?

根据rfc5545

The "DTEND" property for a "VEVENT" calendar component specifies the non-inclusive end of the event.

同样在 fullcalendar 事件对象 end 属性 的文档中写的相同:

The exclusive date/time an event ends. Optional.

A Moment-ish input, like an ISO8601 string. Throughout the API this will become a real Moment object.

It is the moment immediately after the event has ended. For example, if the last full day of an event is Thursday, the exclusive end of the event will be 00:00:00 on Friday!

随着allday事件一切都清楚了,如果事件从24/03/2016到25/03/2016我需要根据上面描述从24/03/2016写至 2016 年 3 月 25 日。

现在,我的问题是当事件从 24/03/2016 10:0024/03/2016 10:30,即 30 分钟事件时,我应该如何在 DTEND 中写入?我需要写吗 24/03/2016 10:30:01 创建 不包含 结束日期?

您对 RFC5545 的理解是正确的,是您的数学不及格:

假设您想举办一个 1 分钟的活动

DTSTART:20160324T173000Z
DTEND:20160324T173100Z

同样,对于 30 分钟的活动,您将拥有:

DTSTART:20160324T173000Z
DTEND:20160324T180000Z