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 of April and ends at 2:00 AM on the last Sunday in October), in which case you can set tm_isdst to a negative number and mktime() will automatically determine whether daylight time applies or not.