The Do Not Disturb
Mode of Mac OS X Yosemite allows you to mute alerts from the Notifications Center
and calls for specific hours of the day.
Open the Notification Center
and click on the Cog
icon displayed at the bottom left corner. Enable Do Not Disturb
and configure your settings: