Code to create individual dates for recurring events.

已完成 已发布的 Feb 23, 2012 货到付款
已完成 货到付款

1. Objective-c version of the attached java file: RecurringSchedule.

2. Extension of that functionality so that I can pass in an array of dates to exclude. (Exceptions)

3. A method that given a start and end date returns all dates like this java function:

private List<DateTime> dateRange(DateTime instanceStartDate,

DateTime instanceEndDate) {

List<DateTime> r = new ArrayList<DateTime>();

DateTime dateTime = new DateTime(instanceStartDate);

DateTime instant = new DateTime(instanceEndDate);

// Normalize because we want all days even when end time is earlier in

// the day

dateTime = [url removed, login to view](12).withMinuteOfHour(0);

instant = [url removed, login to view](13).withMinuteOfHour(0);

while (![url removed, login to view](instant)) {

[url removed, login to view](dateTime);

dateTime = [url removed, login to view](1);

}

return r;

}

Objective C

项目ID: #1463635

关于项目

1个方案 远程项目 活跃的Feb 24, 2012

授予:

bolshedvorsky

I'm able to write this code. I would like to see few samples of function call and it results with different parameters.

$200 USD 在4天内
(28条评论)
6.3