gpt4 book ai didi

cocoa - 事件的发生日期与开始日期有何不同?

转载 作者:行者123 更新时间:2023-12-03 16:50:07 25 4
gpt4 key购买 nike

CalEvent 和 EKEvent 都代表开始日期、结束日期和发生日期。但由于事件对象代表具体的事件,具有具体的开始和结束日期。出现日期始终与开始日期相同的原因是什么?

是否存在事件发生日期与事件开始日期不匹配的情况?

最佳答案

嗯,我刚刚做了一个实验。这是我在分离之前和之后经常发生的事件。

分离之前

po calendarItemExternalIdentifier
"68100758-1572-4662-87C8-84F32680D7C2"
po calendarItemIdentifier
"0D3D5906-9C0F-435A-A0BA-7A6B64086E86"
po self.occurrenceDate
2016-02-12 04:00:00 +0000
po startDate
2016-02-12 04:00:00 +0000
po self.isDetached
false

之后

po calendarItemExternalIdentifier
"68100758-1572-4662-87C8-84F32680D7C2/RID=476942400"
po calendarItemIdentifier
"DAD9A39D-BD57-40D6-8615-B57E3AF9387C"
po self.occurrenceDate
2016-02-12 04:05:00 +0000
po startDate
2016-02-12 04:05:00 +0000
po self.isDetached
true

occurrenceDate 确实发生了变化,这与其声称的相反。有趣的是(并且没有记录(?)) calendarItemExternalIdentifier 也通过附加 RID 进行了更改。 RID 似乎是自 2001 年 1 月 1 日 00:00:00 UTC 到 occurrenceDate 的时间间隔。

关于cocoa - 事件的发生日期与开始日期有何不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14067912/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com