How to automate "do not disturb"? How can I trigger "do not disturb" at regular intervals, say during lectures on MWF from 10am to 11am?

In Yosemite (and Mavericks) one clicks on the notifications icon, then swipes down to reveal the "do not disturb" switch. I'm wondering if it's possible to automate turning the switch to on/off at regular intervals.
Go on Settings -> Notifications