def setTime(date, hour, minute, second):
    """Takes in a date, and returns a copy of it with the time fields
    set as specified.

    Args:
        date (Date): The starting date.
        hour (int): The hours (0-23) to set.
        minute(int): The minutes (0-59) to set.
        second (int): The seconds (0-59) to set.

    Returns:
        Date: A new date, set to the appropriate time.
    """
    return date.replace(hour=hour, minute=minute, second=second, microsecond=0)