问题描述
有人可以解释如何使用 EXDATE
添加事件到Android日历时?该文档是pretty的不清楚其中 EXDATE
应放在格式。我试过很多格式,这是其中的一些:
Can someone explain how to use EXDATE
when adding event to android calendar? The documentation is pretty unclear about the format in which the EXDATE
should be put.I tried many formats, these are some of them:
values.put(Events.EXDATE, "TZID=Europe/London:20130116T080000");
values.put(Events.EXDATE, "20130116T080000Z");
values.put(Events.EXDATE, "20130116T080000");
values.put(Events.EXDATE, "20130116");
但他们没有工作。任何想法如何使事件不会出现在某一特定日期,如果由 RRULE
它应该出现?
but none of them works.Any idea how to make an event not appear on a particular date, if by the RRULE
it should appear?
推荐答案
正确的格式为:
values.put(Events.EXDATE,20130116T080000Z);
然而,你必须确保它在UTC时间。我有从PST开始了同样的问题,所以我不得不加8小时,得到它的工作。
However you must ensure that it is in UTC time. I was having the same problem starting from PST, so I just had to add 8 hours to get it to work.
这篇关于机器人:添加日历事件时EXDATE格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!