Hello Paul,
As you said mktime can return either one timestamp with tm_isdst==0, or a timestamp with tm_isdst>0 and both are correct .
The thing is mktime returns the epoch for the tm structure which we have passed as input to mktime and also set the isdst flag to 0 or >0 of the passed tm structure.
In linux , I am seeing that for DST 2:30 and non DST 2:30 for Europe/Berlin, it is giving the same epoch (the non DST epoch , the same behavior exist for other time zone also ) . Is it expected behavior of mktime to give non DST epoch for both DST and non DST time stamp ?
I am just trying to understand the standard behavior of mktime with respect to epoch which it returns .