def datetime_to_struct(dt):
    """Converts datetime.datetime to time.struct_time

    Args:
        dt (datetime.datetime object): the datetime.datetime object to be converted
    Returns:
        a time.struct_time object with the converted time
    """
    return dt.timetuple()