How to code a RTC to run a code from 11:30pm to 5:30am?

The RTC im using is a DS1307, and I'm really new to arduino and programming. My teacher knows nothing and hasn't taught anything based upon this.