需要在google日历api java中使用recurrence进行更正

5kgi1eie  于 2021-06-30  发布在  Java
关注(0)|答案(0)|浏览(198)

icalendar的重复规则正确吗?

RDATE;VALUE=PERIOD:19960403T020000Z/19960403T040000Z,19960404T010000Z/PT3H

当我通过api在googlecalendar的事件中设置这个字符串时,我只从这个开始获取事件。
这就是我所拥有的:

RDATE;TZID=America/New_York:19960403T020000Z

DateTime startDateTime = new DateTime("2020-12-16T09:00:00");
    EventDateTime start = new EventDateTime()
            .setDateTime(startDateTime)
            .setTimeZone("Europe/Minsk");
    event.setStart(start);

我在java代码中创建了主事件:

Event event = new Event()
            .setSummary("Google I/O 2015")
            .setLocation("800 Howard St., San Francisco, CA 94103")
            .setDescription("A chance to hear more about Google's developer products.");
    DateTime endDateTime = new DateTime("2020-12-16T17:00:00");
    EventDateTime end = new EventDateTime()
            .setDateTime(endDateTime)
            .setTimeZone("Europe/Minsk");
    event.setEnd(end);

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题