gettimeofday()

Geis Jerry (GeisJ@rnd3.indy.tce.com)
Tue, 29 Jul 97 07:43:00 CST


I am attempting to use the function gettimeofday() to tell me
the current time in different time zones based on minuteswest
of GMT.

when calling the getttimeofday with tz_minuteswest of (0 and 5*60)
I seem to be getting the same value?

tz.tz_dsttime = DST_USA;
tz.tz_minuteswest = 5*60;
gettimeofday(&tv, &tz);

I have two questions?

1) is there a better way to get current time in different time zones?
2) Is there something I am missing in calling gettimeofday() that it
is not picking up the 5*60 minuteswest as being different than 0
minuteswest.

thank you.

jerry geis