Time Zone offset number in Objective-c?
问题 How can I get the Timezone offset in Objective-C (for iPhone OS 3)? For example, GMT -5 is US Eastern Time. I want the -5 part of it. How would I do so? 回答1: [[NSTimeZone localTimeZone] secondsFromGMT] / 3600 来源: https://stackoverflow.com/questions/2611369/time-zone-offset-number-in-objective-c