扩展iCalendar的重复数据
我正在创建日历应用程序。对于iPhone。 我从谷歌日历获取日历事件(不扩展重复) 然后尝试通过从头开始编写代码来扩展重复事件。 我确实从网上获得了 iCalendar 格式,例如以下格式:
http://www .kanzaki.com/docs/ical/rrule.html
但从头开始扩展重复事件看起来是个坏主意 太复杂了容易出错。
那么,有人知道在哪里可以找到“扩展重复事件”的算法吗?
更喜欢 Objective-C,但 Java 和类似的语言都可以。 (我尝试查看Sunbird,但无法很好地分析)
请指教!
克己
I'm in middle of creating calendar app. for iPhone.
I get calendar events from google calendars (without expanding recurrence)
Then tried to expand recurrence events by writing codes from scratch.
I did get iCalendar format from the web, for example the following one:
http://www.kanzaki.com/docs/ical/rrule.html
but expanding recurrence events from scratch looks like bad idea
too complicated that error prone.
So, does anyone know where to find algorithm for "expanding recurrence events"?
prefers objective-c but Java and the languages alike is OK.
(I tried to look at Sunbird but couldn't analyze well)
Please advise!
Katsumi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有什么理由不要求 Google 日历为您扩展它呢?诚然,这意味着更多的数据,但至少你会知道你得到了与 Google 日历相同的结果。
您可以使用ical4j,但是我个人遇到过一些实现问题,特别是在使用系统默认时区方面。
(一般来说,我的建议是完全避免编写日历应用程序 - 日历极其复杂。有什么理由编写 iPhone 日历的替代品?“想要了解日历”是一个完全正当的理由,尽管您那时基本上就陷入了疯狂。)
Any reason why you don't ask Google Calendar to expand it for you? Admittedly that means more data, but at least then you'll know you've got the same results as Google Calendar.
You can use ical4j but I've personally had some implementation issues with it, particularly in terms of it using the system default time zone.
(In general, my advice would be to avoid writing a calendar app at all - calendaring is nightmarishly complicated. Any reason for writing a replacement for the iPhone's calendar? "Wanting to learn about calendaring" is a perfectly valid reason, although you're basically embracing insanity at that point.)