Decomposes the given dateint into its year, month and day components.

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

    Returns
    -------
    year : int
        The year component of the given dateint.
    month : int
        The month component of the given dateint.
    day : int
        The day component of the given dateint.

def decompose_dateint(dateint):
    """Decomposes the given dateint into its year, month and day components.

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

    Returns
    -------
    year : int
        The year component of the given dateint.
    month : int
        The month component of the given dateint.
    day : int
        The day component of the given dateint.
    """
    year = int(dateint / 10000)
    leftover = dateint - year * 10000
    month = int(leftover / 100)
    day = leftover - month * 100
    return year, month, day