def dt_to_struct(s):
    """
    datetime -> time_struct

    :param s:
    :return:

    .. code-block:: python

        >>> dt = datetime.datetime.now()
        >>> print dt_to_struct(dt)
    """
    return s.timetuple()
