I am calculating current time Interval using following codes:
NSTimeInterval tInt=[[NSDate date] timeIntervalSince1970];
int tInterval=(int)tInt;
Is this timestamp is in utc time ?
I need NSTimeInterval in UTC Time.
Please help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NSTimeIntervalis an interval of time, like 5 seconds, 2 hours, 3 days and so on it is not “in timezone” time, it is relative time between two time points.I’m not sure what exactly you looking for but have a look at Apple’s doc for using timezones.