Hi all ,
I need to know how to convert a time stamp entered by the user to be converted to GMT/UTC(epoch time) using mktime() and gmtime()
for exapample the input will be put in the form
ptm.tm_sec = 0;
ptm.tm_min = 59;
ptm.tm_hour = 11;
ptm.tm_mday = 20;
ptm.tm_mon = 9-1;
ptm.tm_year = 2011-1900;
ptm.tm_wday = 0;
ptm.tm_yday = 0;
ptm.tm_isdst = -1;
and this has to be converted to epoch time.
Thanks for your help!!