2010-04-09 7 views

risposta

37
[[NSTimeZone localTimeZone] secondsFromGMT]/3600 
+0

Che, che ci crediate o no, deriva dalla classe 'NSTimeZone' incredibilmente utile. –

+0

Quale tipo di dati viene restituito? – Moshe

+0

Restituisce un 'NSInteger'. – Chuck