• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebKit-7600.1.25/mac/History/

Lines Matching refs:date

158     NSDate *date = [NSDate dateWithTimeIntervalSinceReferenceDate:interval];
164 [calendar rangeOfUnit:NSCalendarUnitDay startDate:&beginningOfDayDate interval:&dayLength forDate:date];
170 CFGregorianDate date = CFAbsoluteTimeGetGregorianDate(interval, timeZone);
171 date.hour = 0;
172 date.minute = 0;
173 date.second = 0;
174 beginningOfDay = CFGregorianDateGetAbsoluteTime(date, timeZone);
175 date.day += 1;
176 beginningOfNextDay = CFGregorianDateGetAbsoluteTime(date, timeZone);
181 static inline NSTimeInterval beginningOfDay(NSTimeInterval date)
185 if (!(date >= cachedBeginningOfDay && date < cachedBeginningOfNextDay))
186 getDayBoundaries(date, cachedBeginningOfDay, cachedBeginningOfNextDay);
190 static inline WebHistoryDateKey dateKey(NSTimeInterval date)
195 return beginningOfDay(date);
200 - (BOOL)findKey:(WebHistoryDateKey*)key forDay:(NSTimeInterval)date
203 *key = dateKey(date);
255 // remove this date entirely if there are no other entries on it
291 // other entries already exist for this date
294 // no other entries exist for this date
316 // Remove the item from date caches before changing its last visited date. Otherwise we might get duplicate entries
484 NSCalendarDate *date = [[NSCalendarDate alloc] initWithTimeIntervalSinceReferenceDate:interval];
485 [_orderedLastVisitedDays addObject:date];
486 [date release];
492 - (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)date
495 if (![self findKey:&dateKey forDay:[date timeIntervalSinceReferenceDate]])
555 // Return a date that marks the age limit for history entries saved to or
621 // Test against date limit. Since the items are ordered newest to oldest, we can stop comparing
673 // Ignores the date and item count limits; these are respected when loading instead of when saving, so
813 - (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)date
815 return [_historyPrivate orderedItemsLastVisitedOnDay:date];