简体   繁体   English

如何在icalender中的ekevent中设置事件持续时间?

[英]how to set event duration in ekevent in icalender?

I created event in iCalendar. 我在iCalendar中创建了活动。 Its start date is today and end date is next month 15th. 它的开始日期是今天,结束日期是下个月15日。 and this is recurrence type of event . 这是事件的重复类型。 so if set event as recurrence event then changed end date as same as recurrence end date. 因此,如果将事件设置为重复事件,则将结束日期更改为与重复结束日期相同。 I want to give time duration of event,like 3.30PM to 6.30PM How to i set event duration .... 我想给事件持续时间,例如3.30PM到6.30PM。如何设置事件持续时间....

 "DTSTART;TZID=US-Eastern:19970105T083000 
RRULE:FREQ=YEARLY;INTERVAL=2;BYMONTH=1;BYDAY=SU;BYHOUR=8,9; BYMINUTE=30

First, the "INTERVAL=2" would be applied to "FREQ=YEARLY" to arrive at "every other year". 首先,将“ INTERVAL = 2”应用于“ FREQ = YEARLY”,以得出“每隔一年”。

Then, "BYMONTH=1" would be applied to arrive at "every January, every other year". 然后,将应用“ BYMONTH = 1”来得出“每年的一月,隔年”。

Then, "BYDAY=SU" would be applied to arrive at "every Sunday in January, every other year". 然后,将应用“ BYDAY = SU”到达“每隔一年的一月的每个星期日”。

Then, "BYHOUR=8,9" would be applied to arrive at "every Sunday in January at 8 AM and 9 AM, every other year". 然后,将应用“ BYHOUR = 8,9”来到达“每年一月的每个星期日的上午8点和上午9点”。

Then, "BYMINUTE=30" would be applied to arrive at "every Sunday in January at 8:30 AM and 9:30 AM, every other year". 然后,将应用“ BYMINUTE = 30”来到达“每隔一年的1月的每个星期日上午8:30和9:30”。

Then, lacking information from RRULE, the second is derived from DTSTART, to end up in "every Sunday in January at 8:30:00 AM and 9:30:00 AM, every other year". 然后,由于缺少来自RRULE的信息,第二个数据来自DTSTART,最终以“每年一月的每个星期日的上午8:30:00和9:30:00”结束。

Similarly, if the BYMINUTE, BYHOUR, BYDAY, BYMONTHDAY or BYMONTH rule part were missing, the appropriate minute, hour, day or month would have been retrieved from the "DTSTART" property." 同样,如果缺少BYMINUTE,BYHOUR,BYDAY,BYMONTHDAY或BYMONTH规则部分,则将从“ DTSTART”属性中检索到适当的分钟,小时,天或月。”

Please any one guide me how to set ... I know how to recurrence rule is working but my question is how to set event duration. 请任何人指导我如何设置...我知道重复规则是有效的,但我的问题是如何设置事件持续时间。

No client that I know of support BYMINUTE and BYHOUR so unless this event is for your own application consumption, you are asking for trouble. 据我所知,没有客户支持BYMINUTE和BYHOUR,因此除非此事件是为您自己的应用程序使用的,否则您会自找麻烦。 IN any case, the very first instance will use the DTSTART value as the beginning, regardless of what you may have put in BYMINUTE and BYHOUR (see http://tools.ietf.org/html/rfc5545#section-3.8.5.3 ) 无论如何,无论您将BYMINUTE和BYHOUR放在什么位置,第一个实例都将以DTSTART值作为开头(请参阅http://tools.ietf.org/html/rfc5545#section-3.8.5.3

Then you can use DTEND or DURATION: 然后,您可以使用DTEND或DURATION:

DTSTART;TZID=US-Eastern:19970105T083000 DTEND;TZID=US-Eastern:19970105T153000 DTSTART; TZID = US-Eastern:19970105T083000 DTEND; TZID = US-Eastern:19970105T153000

or 要么

DTSTART;TZID=US-Eastern:19970105T083000 DURATION:PT7H DTSTART; TZID = US-Eastern:19970105T083000 DURATION:PT7H

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM