Sorry to bother you again so soon ...
I'm dealing with a problem in using the mktime () call, passing it
dates ranging along the whole year, so possibly falling into the
daylight saving interval .
Let's say I have the following code :
struct tm mytime;
time_t stdtime;
mytime = *localtime(time(NULL));
stdtime = mktime (&mytime);
If mytime falls in the daylight saving interval (which, for my zone is
between the last sunday of march and the last sunday of october), is
it possible that the mktime() changes it by adding 1 hour, if the
mytime.tm_isdst is constantly set to 0 ?
And if it is , why is it so ? I mean, shouldn't the mktime treat the
parameter as a fixed value ? I would expect some adjustement on the
stdtime, which is the result, and I would of course expect a
different value of it if it falls in the daylight interval or not...