def utc_tuple_to_local_secs(utc_tuple, output_timezone=UNIVERSAL, is_dst=False):
    """ Convert UTC time tuple to seconds according to timezone and is_dst. """
    """ NOTE: It's up to caller that is_dst flag makes sense. """
    utc_tuple = fill_in_tuple(utc_tuple)
    secs = tuple_to_secs(utc_tuple)
    secs -= TIME_ZONE_OFFSETS_TO_UTC[timezone]
    if is_dst:
        secs += HOUR_SECONDS
    return secs
 Convert UTC time tuple to seconds according to timezone and is_dst. 
recipes/Python/576546_DateTimeSyncer_Daylight_Savings_Time/recipe-576546.py