April 28, 1997
11:21 p.m.
Hi-- I've been writing some code to convert between timezones on Linux, using zoneinfo (compiling with -lz) Basically, I create a struct tm, populate it with user entered data, then t = mktime(tm); setenv("TZ","Australia/Brisbane",1); tzset(); newtm = localtime(&t); /* then later...*/ setenv("TZ","Australia/Brisbane",1) tzset(); newtm = localtime(&t); I'm compiling with cc, linking in (-lz -L/usr/local/lib) the libz.a, which compiles cleanly under IRIX 5.3. This code works *perfectly* under Linux (redhat 2.0.18). Am I missing something about the zoneinfo package? Thanks in advance, Mark White Tandem Computers Int'l Inc. m.white@pacific.tandem.com +61 4 1155 3351 +61 7 3218 3650 (fax)