I would like to get milliseconds from creation time of file attribute When I get file attribute, I use NSDateFormatter to convert file creation time (NSDate) to NSString.
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss:SS: A"];
- ss --> seconds
- SS --> should be millisecond
- A --> milliseconds of the date
I get 00 for SS and get 54487000 for A. I notice that the last three digits are always zero for NSDate come from file attribute of any files. But when I use the same formatter with the NSDate come from [NSDate date], the last three digits are not zero for A, and SS digit is not always zero.
Does File Attribute retrieved in Objective-C contain file attribute?