Return the difference between two dateints in days.

    Arguments
    ---------
    dateint1 : int
        An integer object decipting a specific calendaric day; e.g. 20161225.
    dateint2 : int
        An integer object decipting a specific calendaric day; e.g. 20161225.

    Returns
    -------
    int
        The difference between the two given dateints in days.

def dateint_difference(dateint1, dateint2):
    """Return the difference between two dateints in days.

    Arguments
    ---------
    dateint1 : int
        An integer object decipting a specific calendaric day; e.g. 20161225.
    dateint2 : int
        An integer object decipting a specific calendaric day; e.g. 20161225.

    Returns
    -------
    int
        The difference between the two given dateints in days.
    """
    dt1 = dateint_to_datetime(dateint1)
    dt2 = dateint_to_datetime(dateint2)
    delta = dt1 - dt2
    return abs(delta.days)