2011-08-18 110 views

回答

-1

如果兩者都NSDates那麼你可以做:

//calculate the time difference in seconds, that is absolute and does not depend in time zones :) 
double timeDiffInSecs = [date1 timeIntervalSince1970] - [date2 timeIntervalSince1970]; 
+0

我只是想爲當前時間的當前時間間隔區域而不是UTC – Satyam