Hi again,

I'm using this code to get the last accessed date of a file:

struct stat output;

    int ret = stat([aFile fileSystemRepresentation], &output);
    struct timespec accessTime = output.st_atimespec;
   NSDate *aDate = [NSDate dateWithTimeIntervalSince1970:accessTime.tv_sec];

    NSLog(@"Access Time %d, %@",ret, aDate);

But it's just giving me today's date.  There must be something obvious I'm 
doing wrong but I have not been able to figure it out.  Any pointers?  And I 
couldn't use NSURLContentAccessDate because I still need 10.5 support.  Thanks!

rc_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to