开发者

How to convert NSAppleEventDescriptor type 'ldt' to NSDate in Cocoa?

NSLog(@"%@",eventDescriptor); shows <NSAppleEventDescriptor: 'ldt '($90EFCFC700000000$)>

How do i convert this to NSD开发者_如何学Cate?


It's probably a LongDateTime value, so you'd extract the data as LongDateTime, then maybe pass it through UCConvertLongDateTimeToCFAbsoluteTime and then use +[NSDate dateWithTimeIntervalSinceReferenceDate:].

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜