Charles Mills wrote:
Sorry if people feel that times have been beaten to death.

Environment is started task.

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.)

Does that make sense to anyone? Any clues?

What does the "d t" command return?

Bob

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN

Reply via email to