Fortunately for residents of the US and other countries that use the same logic (Daylight time starts at 2:00 AM on the first Sunday in April and ends at 2:00 AM on the last Sunday in October), you can set tm_isdst to a negative number and mktime(3) will automatically determine whether daylight time applies or not.