Please can anyone help me to get the time zone between GMT & New York including the daylight saving.
I am able to get the timezone between GMT & localtime including the daylight saving. My program goes like this
time_t t = time(0); struct tm* data; data = localtime(&t); data->tm_isdst = 0; time_t a = mktime(data); data = gmtime(&t); data->tm_isdst = 0; time_t b = mktime(data); int gmtoffset = (a - b)/3600;
But I am not able to New York local time. Thanks a lot in advance.