php – 一个ical文件是否必须有一个enddate?
作者:互联网
我正在用php写一个.ics文件.我想知道VEVENT是否总是需要有一个结束?
喜欢……这是允许的吗?
BEGIN:VEVENT
UID:d3f760e29fa3f482199f8ed0663d5cf7@mydomain.com
DTSTAMP:20130308T140833Z
DTSTART:20130404T053000Z
DTEND:
SUMMARY:Title of the entry
DESCRIPTION:Something something something …
END:VEVENT
或这个 …
BEGIN:VEVENT
UID:d3f760e29fa3f482199f8ed0663d5cf7@mydomain.com
DTSTAMP:20130308T140833Z
DTSTART:20130404T053000Z
SUMMARY:Title of the entry
DESCRIPTION:Something something something …
END:VEVENT
感谢您的帮助和提示.
我只是问这个,因为有一些开放式的事件,我不知道何时设置一个结束日期?
解决方法:
规范中更精确的部分是:3.6.1. Event Component表示
For cases where a “VEVENT” calendar component specifies a “DTSTART” property with a DATE value type but no “DTEND” nor “DURATION” property, the event’s duration is taken to be one day. For cases where a “VEVENT” calendar component specifies a “DTSTART” property with a DATE-TIME value type but no “DTEND” property, the event ends on the same calendar date and time of day specified by the “DTSTART” property.
在您的情况下,当您想要从现在开始并且没有结束的事件时,规范中没有规定.
标签:php,icalendar 来源: https://codeday.me/bug/20190823/1696050.html