
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)

Date: Tue, 29 Apr 1997 09:21:42 +1000 (EST) From: Mark White <markw@pacific.tandem.com> This code works *perfectly* under Linux (redhat 2.0.18). Am I missing something about the zoneinfo package? Most likely you need to install the proper tables under IRIX; I've heard that IRIX doesn't have the tables installed by default. It does sound weird to me that they'd ship tz code without the tz data. For more info, please see: ftp://ftp.memex.co.uk/pub/sgi/sgitzone.tar.gz
participants (2)
-
Mark White
-
Paul Eggert