开发者

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

开发者 https://www.devze.com 2023-01-06 06:20 出处:网络
NSLog(@\"%@\",eventDescriptor); shows <NSAppleEventDescriptor: \'ldt \'($90EFCFC700000000$)> How do i convert this to NSD开发者_如何学Cate?It\'s probably a LongDateTime value, so you\'d extract

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

精彩评论

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