zoneinfo package under IRIX?

Mark White markw at pacific.tandem.com
Mon Apr 28 23:21:42 UTC 1997


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 at pacific.tandem.com
+61 4 1155 3351 +61 7 3218 3650 (fax) 




More information about the tz mailing list