Code for rotate a dc motor when time is setted in Arduino

I want code for rotate dc motor in Arduino Uno board for setting in particular time period or three time per day for example morning before 8 am and noon before 1 pm and night before 8 pm

void setup ()
  initMotor ();

void loop ()
  runMotorForSpecifiedTime (specifiedTime);

You just need to fill in a few blanks.

you need the Time library

if (timeStatus()!= timeNotSet)

rev your engine...

look in the Time and similar libraries
look for alarm clock projects