A Catamera widget has multiple views L0, L1, L2 and L3 (Table). Widget shows a summarized view, it could be cumulative or for a particular week or month. Some widgets have timeline showing for example last few months of data.
##### L1
| + (NSInteger)daysBetweenDate:(NSDate*)fromDateTime andDate:(NSDate*)toDateTime | |
| { | |
| NSDate *fromDate; | |
| NSDate *toDate; | |
| NSCalendar *calendar = [NSCalendar currentCalendar]; | |
| [calendar rangeOfUnit:NSDayCalendarUnit startDate:&fromDate | |
| interval:NULL forDate:fromDateTime]; | |
| [calendar rangeOfUnit:NSDayCalendarUnit startDate:&toDate |