Search This Blog

Thursday, September 23, 2010

How to obtain current timezone in xcode or objective c

Programmer Question

I need to get time zone for the current location such as -5 or +3 and so on. I am unable to do so. I am using datecomponents:



// Turn the date into Integers
NSInteger year = [dateComponents year];
NSInteger month = [dateComponents month];
NSInteger day = [dateComponents day];



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails