Hi, I'm trying to port some code that uses 'timezone' from time.h:
... time_t utime; struct tm tms; ... utime = utime - timezone + tms.tm_isdst*3600; ... but I get compilation error because the code expects timezone to be a long (as is on Linux) but in cygwin it's actually a function that returns a char*: ../../src/client/store_in_cc.c: In function `utc2unix': ../../src/client/store_in_cc.c:135: error: invalid operands to binary - if I print the result of timezone(), I get: GMT+10:00 ie. a string rather than a number. Is there a standard way to convert cygwin's 'timezone' to the number expected by the Linux code? regards King Lung Chiu -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/