FROM : Ben Dougall
DATE : Tue Dec 21 16:39:05 2004
sorry, forget this -- i think it was because it had been visited again
later. confusing though because the item stayed in the same position in
the history list instead of jumping to the top. anyway not to worry.
On Tuesday, December 21, 2004, at 02:31 pm, I wrote:
> i can't work this out. i'm accessing safari's History.plist file and
> looking at the lastVisitedDate items which are in the number of
> seconds since 00:00:00.0 1st jan 2001 format (about safari's
> lastVisitedDate format:
> <http://docs.info.apple.com/article.html?artnum=108017>). there's a
> webpage that's recorded in my history file that i know was visited on
> Monday 20th --- and so does safari (that is, the page in question is
> in the correct dated folder in safari's history display). but when i
> access this data via my code, the date/time is in the 21st rather than
> 20th. why is my code getting 21st when the correct date (and the date
> that safari is getting for it) is the 20th?
>
> NSString *stringFromLastVisitedDate = @"125323011.4";
> NSDate *d = [[NSDate alloc]
> initWithTimeIntervalSinceReferenceDate:[stringFromLastVisitedDate
> doubleValue]];
> NSLog(@"\nstring: %@\nd: %@ \ndesc: %@",
> stringFromLastVisitedDate, d, [d description]);
>
> prints:
>
> string: 125323011.4
> d: <CFDate 0x5cc60 [0xa01303fc]>{time = 125323011}
> desc: 2004-12-21 11:56:51 +0000
>
> the printed date is the 21st but safari puts this item in the 20th
> folder (which is the correct one). the stringFromLastVisitedDate is
> definitely the one corresponding to the item in question. the above
> technique i'm using correctly gets dates/times of just recently
> visited pages, so i've got a feeling this isn't even a cocoa question
> but a safari thing -- it's doing something extra maybe?
>
> any ideas?
>
> thanks, ben.
>
DATE : Tue Dec 21 16:39:05 2004
sorry, forget this -- i think it was because it had been visited again
later. confusing though because the item stayed in the same position in
the history list instead of jumping to the top. anyway not to worry.
On Tuesday, December 21, 2004, at 02:31 pm, I wrote:
> i can't work this out. i'm accessing safari's History.plist file and
> looking at the lastVisitedDate items which are in the number of
> seconds since 00:00:00.0 1st jan 2001 format (about safari's
> lastVisitedDate format:
> <http://docs.info.apple.com/article.html?artnum=108017>). there's a
> webpage that's recorded in my history file that i know was visited on
> Monday 20th --- and so does safari (that is, the page in question is
> in the correct dated folder in safari's history display). but when i
> access this data via my code, the date/time is in the 21st rather than
> 20th. why is my code getting 21st when the correct date (and the date
> that safari is getting for it) is the 20th?
>
> NSString *stringFromLastVisitedDate = @"125323011.4";
> NSDate *d = [[NSDate alloc]
> initWithTimeIntervalSinceReferenceDate:[stringFromLastVisitedDate
> doubleValue]];
> NSLog(@"\nstring: %@\nd: %@ \ndesc: %@",
> stringFromLastVisitedDate, d, [d description]);
>
> prints:
>
> string: 125323011.4
> d: <CFDate 0x5cc60 [0xa01303fc]>{time = 125323011}
> desc: 2004-12-21 11:56:51 +0000
>
> the printed date is the 21st but safari puts this item in the 20th
> folder (which is the correct one). the stringFromLastVisitedDate is
> definitely the one corresponding to the item in question. the above
> technique i'm using correctly gets dates/times of just recently
> visited pages, so i've got a feeling this isn't even a cocoa question
> but a safari thing -- it's doing something extra maybe?
>
> any ideas?
>
> thanks, ben.
>
| Related mails | Author | Date |
|---|---|---|
| Ben Dougall | Dec 21, 15:31 | |
| Ben Dougall | Dec 21, 16:39 |






Cocoa mail archive

