I would suggest that the HW clock is 7 minutes off of GMT

<snip>
In accordance with an earlier thread I am setting _TZ to 'EST5EDT'
rather
than the configured null so that strftime("%z") works as expected.

I just discovered that that is throwing my local times off by 7 minutes.
Does that make ANY sense to anyone?

The times in question are coming from the following logic:

    tm* tmStruct;
    struct timeb timebuffer;
    ftime(&timebuffer);
   tmStruct = localtime(&timebuffer.time);

I use ftime because I am also using the milliseconds. (I have a exactly
the
same problem with times derived from STCK, so the ftime is not the
problem.)

Initially the times are correct. However, after I issue 

int seRes = setenv("_TZ", "EST5EDT", 1);

 the times are off by exactly seven minutes. (Result time 7 minutes
later or
greater than actual.)
</snip>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to