import time


def date_dff(date_a, date_b):
    """
        :params:
            :param date_a: time.struct_time
            :param date_a: time.struct_time

        :return: the difference in minutes between two dates
        :rtype: float
    """
    return abs((time.mktime(date_a) - time.mktime(date_b)) / 60)