Converts the given dateint to a datetime object, in local timezone.

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

    Returns
    -------
    datetime.datetime
        A timezone-unaware datetime object representing the start of the given
        day (so at 0 hours, 0 minutes, etc...) in the local timezone.

def dateint_to_datetime(dateint):
    """Converts the given dateint to a datetime object, in local timezone.

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

    Returns
    -------
    datetime.datetime
        A timezone-unaware datetime object representing the start of the given
        day (so at 0 hours, 0 minutes, etc...) in the local timezone.
    """
    if len(str(dateint)) != 8:
        raise ValueError(
            'Dateints must have exactly 8 digits; the first four representing '
            'the year, the next two the months, and the last two the days.')
    year, month, day = decompose_dateint(dateint)
    return datetime(year=year, month=month, day=day)