Use new LocalDate class in existing reccuring schedule calc.

Annulleret Opslået May 9, 2012 Betalt ved levering
Annulleret Betalt ved levering

Upgrade performance of existing reccuring schedule routine.

The current function uses NSDate and NSDateComponents. The converting uses too much time. Especially to compare just the date part of the NSDate, ignoring or normalising the time.

So we need a new class LocalDate to be used in this calculation.

Create an immutable LocalDate class with fields for year, month, day and methods to parse from/to "2012-05-16", and efficient plusDays(), plusMonths() and plusYears() methods that return a new LocalDate (off course normalised so that )

the plusXxx methods must allow a negative offset (plusdays(-7) is last week)

[[[LocalDate fromString:@"2012-05-28" ] plusDays:7] toString] would return "2012-06-04"

LocalDate must also have isEqualToLocalDate method, and toDate method that returns a NSDate and a static today method.

Objective C

Projekt ID: #1619772

Om projektet

Remote projekt Aktiv May 21, 2012