本文介绍了Google Calendar Api v3(Java客户端):setRecurrence:EXDATE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道如何在Google Calendar API v3(Java客户端)中为事件设置EXDATE吗?
Does anyone know how to set EXDATE for an event in Google Calendar API v3 (Java client)?
使用 setRecurrence(列表重复):RRULE可以完美运行,但是 EXRULE,RDATE和EXDATE 似乎不起作用(与getRecurrence(列表重复):仅检索到RRULE.
Using setRecurrence(List recurrence):RRULE works perfectly, but EXRULE, RDATE and EXDATE don't seem to work (same with getRecurrence(List recurrence): only RRULE is retrieved).
import com.google.api.services.calendar.model.Event;
Event event = new Event();
// ...
List RecurrenceList = new ArrayList<String>();
RecurrenceList.add("RRULE:FREQ=WEEKLY;BYDAY=FR"); //this works
RecurrenceList.add("EXDATE:20121019T100000Z"); //this doesn't work
event.setRecurrence(RecurrenceList);
// ...
推荐答案
我知道了,我只是没有使用UTC日期,现在可以使用
I figured it out, I just hadn't used the UTC date, it's working now
这篇关于Google Calendar Api v3(Java客户端):setRecurrence:EXDATE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!