|
From: Ilana L. <il...@is...> - 2005-01-26 07:17:47
|
Tor Lillqvist wrote: > Or try Cygwin? Does Cygwin implement full-fledged modern Unix-like > timezone stuff? Yes, it looked as if Cygwin was handling time zone in the same way as Linux= =2E =20 The only problem is that the Cygwin lib(s) are covered by the GNU GPL licen= ce=20 and we would have to make our source available. > Get suitable code for timezone handling and include in your code? > Would for example the original public domain Olson code be portable to > Windows? Or use the Win32 API directly and forget the TZ environment > variable and the C library's local time related functions. As I am not a Windows C programmer, I tried first porting the Olson code. = I=20 had to remove the symbolic links and make a few other minor changes. The = =20 port looks OK except that tzname[0] is set incorrectly. =A0But for now I ca= n=20 live with that. When compiling the code, a static library libtz.a is created. =A0This libr= ary=20 contains replacement time functions including asctime, localtime etc. =20 Linking against this library reports the correct local time when setting TZ= =20 to e.g. Africa/Johannesburg. Would it be possible to include this library in the mingw distribution or s= ome=20 other distribution? Thanks for the help, Ilana =2D-=20 Ilana Loubser ISS International Limited, Technology Division, Software Engineering=20 P O Box 12063, DIE BOORD 7613, South Africa Tel: +27 (0)21 809-2091 Fax: +27 (0)21 809-2061 Email: il...@is... Web Page: http://www.issi.co.za Confidentiality Warning ____________________________________________________________________ This e-mail message contains confidential information which is intended for the use of the person to whom it is addressed. If you received it in error, please notify the sender and delete the material from any computer. Any disclosure, re-transmission, dissemination or any other use of this information is strictly prohibited. ____________________________________________________________________ |