Lines Matching refs:date
154 CFGregorianDate date = CFAbsoluteTimeGetGregorianDate(interval, timeZone);
155 date.hour = 0;
156 date.minute = 0;
157 date.second = 0;
158 beginningOfDay = CFGregorianDateGetAbsoluteTime(date, timeZone);
159 date.day += 1;
160 beginningOfNextDay = CFGregorianDateGetAbsoluteTime(date, timeZone);
164 static inline NSTimeInterval beginningOfDay(NSTimeInterval date)
168 if (!(date >= cachedBeginningOfDay && date < cachedBeginningOfNextDay))
169 getDayBoundaries(date, cachedBeginningOfDay, cachedBeginningOfNextDay);
173 static inline WebHistoryDateKey dateKey(NSTimeInterval date)
178 return beginningOfDay(date);
183 - (BOOL)findKey:(WebHistoryDateKey*)key forDay:(NSTimeInterval)date
186 *key = dateKey(date);
238 // remove this date entirely if there are no other entries on it
274 // other entries already exist for this date
277 // no other entries exist for this date
297 // Remove the item from date caches before changing its last visited date. Otherwise we might get duplicate entries
402 #pragma mark DATE-BASED RETRIEVAL
418 NSCalendarDate *date = [[NSCalendarDate alloc] initWithTimeIntervalSinceReferenceDate:interval];
419 [_orderedLastVisitedDays addObject:date];
420 [date release];
426 - (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)date
429 if (![self findKey:&dateKey forDay:[date timeIntervalSinceReferenceDate]])
484 // Return a date that marks the age limit for history entries saved to or
552 // Test against date limit. Since the items are ordered newest to oldest, we can stop comparing
604 // Ignores the date and item count limits; these are respected when loading instead of when saving, so
710 #pragma mark DATE-BASED RETRIEVAL
717 - (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)date
719 return [_historyPrivate orderedItemsLastVisitedOnDay:date];