icalendar

Add events to iCal from iPhone App, The event has no calendar set Error?

半城伤御伤魂 提交于 2019-12-04 19:14:47
I have one problem while adding multiple events more than 70 events repeatedly again and again to the iCal from our iPhone application. First 20 events add to iCal without any issues. After the balance events not adding to iCal. The error log from the iCal shows the given Error, ["Error Domain=EKErrorDomain Code=1 "The event has no calendar set." UserInfo=0xfada510 {NSLocalizedDescription=The event has no calendar set.}”]. Below i have attached my code. Please help me to solve this problem. int count = [eventsArray Count]; for(int i=0;i<count;i++) { EKEventStore *eventStore = [[EKEventStore

Is there a tool that allows visualization of crontab entries? [closed]

匆匆过客 提交于 2019-12-04 18:50:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have crontabs for many machines, and wanted to see what started when, and to ensure load on the database server would be fine. Is there a tool that either converts crontab entries to iCal, or a tool that directly does visualization? 回答1: I don't have a great cron specific answer for this but in case its

PHP Date to iCal date format for DTSTART

吃可爱长大的小学妹 提交于 2019-12-04 18:35:57
问题 Is there an easy way to get the correct format for an iCal DTSTART using php date? I need the format to look like: 20111008T110000 or 20111008 (that one is easy) if I don't have any time. Does PHP date have a quick way to do this, specifically one that adds the time or removes it when needed? 回答1: There isn't any native PHP function or date format that I'm aware of, so you'll need to create your own function. Something like this: function getIcalDate($time, $inclTime = true) { return date(

Is there a javascript calendar that takes an ical link as input to display events? [closed]

▼魔方 西西 提交于 2019-12-04 17:21:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . I am looking for a javascript based calendar that will allow me to specify a remote ical file to use as the source for the events. I know google will allow you to import the ical then view the calendar via js or iframe, but I need to keep this agnostic to individual user accounts of any time. Any suggestions?

How to have an iCalendar (RFC 2445) repeat YEARLY with duration

最后都变了- 提交于 2019-12-04 15:02:41
I have been unsuccessful in formulating a RRULE that would allow an event as shown below: Repeats YEARLY, from first Sunday of April to last day of May, occuring on Monday, Wednesday and Friday, until forever. FREQ=YEARLY;BYMONTH=4;BYDAY=SU (gives me the first Sunday of April repeating yearly) and FREQ=YEARLY;BYMONTH=5;BYMONTHDAY=-1 (gives me the last day of May repeating yearly) But I can't figure out how to have the event repeat yearly between those dates for Monday, Wednesday and Friday. Suggestions? Update: Comments don't have enough space to respond to Chris' answer, so I am editing the

iCloud calendar synchronization issue while creating calendar from application

为君一笑 提交于 2019-12-04 14:58:38
Trying to implement iCloud Calendar synchronization for iOS. The idea is to create a new calendar from my app and sync it with iCloud when iCloud sync is on actually. To get corresponding source I'm using the following code: EKSource* localSource=nil; for (EKSource* source in self.eventStore.sources) { if(source.sourceType == EKSourceTypeCalDAV && [source.title isEqualToString:@"iCloud"]) { localSource = source; break; } } Then creating a calendar in that source and saving. When iCloud sync is on and Calendar synchronization is on for iCloud as well from iPhone->Settings->iCloud->Calendar It's

How to use NSScanner to parse .ics file

谁都会走 提交于 2019-12-04 13:52:09
问题 Could someone please show how i could parse a ics file using NSScanner? (Iphone App) e.g: if the .ics file was at this URL http://www.ibz.com/data/12345.ics (not a real URL!!!) How would i firstly save the .ics file into my iphone app and then secondly how would i parse the .ics file using NSScanner?? Please provide code examples.. 回答1: Code examples to do this completely and well would be quite extensive, and SO isn't the place for large sample applications. With that in mind, the general

RRULE parsing in Postgresql

﹥>﹥吖頭↗ 提交于 2019-12-04 12:42:46
The goal: to generate a list of timestamps, each representing an event occurrance, from an RRULE string (i.e. FREQ=WEEKLY;INTERVAL=2;COUNT=8;WKST=SU;BYDAY=TU,TH ) and a starting timestamp. Since these times will be changed at the whim of a user, postgresql is desired for (1) it's quality of strict business logic and (2) triggers (auto-update rows when a value changes) Alternative Solution: I ended up using plpythonu (python language for postgresql). The dateutil library has a great rrule parser. mydatabase=# CREATE FUNCTION parse_occurrences(rule text, start timestamp) RETURNS timestamp[] AS

How to generate .ics file using PHP for a given date range and time [closed]

做~自己de王妃 提交于 2019-12-04 12:26:21
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am trying to find an effective method to generate a downloadable ".ics" file using PHP, based on a given date range (start date - end date) and reminder time. Could any one provide me a sample PHP code to

URL Scheme for opening the iCal app at a date or event?

瘦欲@ 提交于 2019-12-04 12:07:08
The Apple URL Scheme Reference gives a nice overview of a number of URL schemes you can use to open certain built-in apps with some parameters. I know that this is not a complete list of all possible URL schemes that the built-in apps respond to, since there are also ways to open the system settings at various pages. The website http://handleopenurl.com is a nice attempt at gathering all possible URL schemes and it has quite a few built-in apps on there. One app I would like to open with a URL scheme is the Calendar app (formerly known as iCal). But is there a scheme? If you know there is,