How to get the time zone info for a file in ex-Fat

I want to get the time zone related info on a file on a SD card formatted in ex-fat. The file was created by a non-apple device.
ex-fat does allow storing a time zone with each file which denotes the time zone where the file was created.

My first try was to use diropen with readdir to locate dirent info for the file but dirent struct does not have any time zone info.

My second approach was to look at the file resource values. I couldn't find any time zone related file attribute probably because that feature is ex-fat specific.

The context is a mobile app running on an iPad with access to external storage.

Any guidance will be appreciated. Thanks.
I don’t think we have a mechanism to expose this per-file time zone info to app developers (which is understandable given that no Apple file system supports this feature). My only recommendation here is that you file an enhancement request describing your requirements.

Please post your bug number, just for the record.

ps Detailed info like this is usually exposed via getattrlist at the BSD level (see its man page) or via NSURL resources values at higher levels (see -getResourceValue:forKey:error:).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
How to get the time zone info for a file in ex-Fat
 
 
Q