Hmmm. OK. I reread your original post. Isn't there timeZoneWithAbbreviation: within NSTimeZone that allows this?
It's a little more complicated though and StackOverflow seems to have an answer that might help you. http://stackoverflow.com/questions/8871727/gmt-timezone-conversion-in-objective-c Hope this helps. The last time I messed with this I'm sure I didn't do it right, but I had to create a temporary calendar to store a date event On Jul 30, 2014, at 2:48 PM, Jens Alfke wrote: > >> On Jul 30, 2014, at 11:43 AM, Alex Zavatone <[email protected]> wrote: >> >> Have you checked out NSDateComponents and NSTimeZone, Jens? >> >> There is a section in the Xcode help that mentions "Creating Dates with Time >> Zones" and if you search the help, for that string, you should be able to >> find that. > > That doesn’t seem relevant. I’m not asking how to convert a time zone string > like “PDT” into an NSTimeZone object. I’m asking how to determine the time > zone from an entire formatted date string, as in the example I gave earlier. > > —Jens _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
