0

我正在尝试创建每日活动

比如从2​​013 年 9 月 14 日到 2013 年 9 月 18 日 10:00 UTC 到 15:30 UTC。日常的

我正在使用以下查询

DTSTART;VALUE=DATE:20130914T100000Z\r\nRRULE:FREQ=DAILY;
UNTIL=20130918T153000Z\r\n;

它正在创建一个递归事件,但会持续一整天。我想要每天给定时间间隔之间的事件。

我是新来的。请帮忙。

谢谢

4

1 回答 1

1

You're getting a full day event because your DTSTART has VALUE=DATE instead of DATETIME.

Also, the UNTIL specifies the last DTSTART, not the DTEND, so you'll probably need a DTEND:20130914T153000Z

Try

DTSTART:20130914T100000Z
DTEND:20130914T153000Z
RRULE:FREQ=DAILY;UNTIL=20130918T100000Z

To break it down:

  1. The DTSTART says the first occurrence starts on 2013-09-14 @ 10:00:00 UTC.
  2. The DTEND says the first occurrence ends on 2013-09-14 @ 15:30:00 UTC.
  3. The RRULE says subsequent occurrences occur daily and the last one will occur on or before 2013-09-18 @ 10:00:00 UTC.
于 2013-09-14T15:13:16.353 回答