FROM : Ryan Britton
DATE : Thu Jul 27 01:56:20 2006
//Assume currInfo is a catalog info structure with the modification
attribute set
CFAbsoluteTime absTime = 0;
UCConvertUTCDateTimeToCFAbsoluteTime(&currInfo->attributeModDate,
&absTime);
NSDate *date = [NSDate dateWithTimeIntervalSinceReferenceDate:absTime];
On Jul 26, 2006, at 9:29 AM, Ken Tozier wrote:
> Hi
>
> I'm storing some file information in a database and need to convert
> the file modification date returned from FSCatalogInfo to either an
> NSDate or an NSCalendarDate. I found a link here: http://
> www.cocoabuilder.com/archive/message/cocoa/2001/8/1/45890 but all
> he solutions listed in that thread seem to use deprecated functions
> and/or methods. Is there a newer way to convert a file modification
> date to an NSDate?
>
> I need to use FSCatalogInfo instead of [NSFileManager
> attributesAtPath:...] to get some info NSFileManager doesn't
> return (like the directory valence)
>
> Thanks
>
> Ken
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Thu Jul 27 01:56:20 2006
//Assume currInfo is a catalog info structure with the modification
attribute set
CFAbsoluteTime absTime = 0;
UCConvertUTCDateTimeToCFAbsoluteTime(&currInfo->attributeModDate,
&absTime);
NSDate *date = [NSDate dateWithTimeIntervalSinceReferenceDate:absTime];
On Jul 26, 2006, at 9:29 AM, Ken Tozier wrote:
> Hi
>
> I'm storing some file information in a database and need to convert
> the file modification date returned from FSCatalogInfo to either an
> NSDate or an NSCalendarDate. I found a link here: http://
> www.cocoabuilder.com/archive/message/cocoa/2001/8/1/45890 but all
> he solutions listed in that thread seem to use deprecated functions
> and/or methods. Is there a newer way to convert a file modification
> date to an NSDate?
>
> I need to use FSCatalogInfo instead of [NSFileManager
> attributesAtPath:...] to get some info NSFileManager doesn't
> return (like the directory valence)
>
> Thanks
>
> Ken
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Ken Tozier | Jul 26, 18:29 | |
| Deborah Goldsmith | Jul 26, 22:15 | |
| Ryan Britton | Jul 27, 01:56 | |
| Ken Tozier | Jul 27, 02:08 |






Cocoa mail archive

