I am getting total number of seconds for the timezone but not getting it is ahead of GMT Or behind to GMT. Here is my code.
NSDate *sourceDate = [NSDate dateWithTimeIntervalSinceNow:3600 * 24 * 60];
NSTimeZone* destinationTimeZone = [NSTimeZone systemTimeZone];
int totalSeconds = [[NSTimeZone systemTimeZone] secondsFromGMT];
NSLog(@"sourceDate=%@ timeZoneOffset=%d", sourceDate, totalSeconds);
I want to know it is GMT + or GMT - For example India time zone is GMT+5:30 i am getting total 19800 seconds with this code but how to know it is GMT+ .
Any help will be appreciated.