Time/Temperature controlled Freezer help!

Thanks for your reply guys. Im going to look into getting the RTC clock and getting it working but im not sure with time constraints I can get that done in time. Im ordering the chip but in the meantime I just found the time alarm library and was wondering if i could use this to call a function as a "rough draft" to get it working. This is kinda what i mean -

#define DAYLOW -6
#define DAYHIGH -5
#define NIGHTLOW -22
#define NIGHTHIGH -20

setTime(6,0,0,1,28,12); // set time to 6:00:00am Jan 28 2012
Alarm.alarmRepeat(0,01,00, Daymode); // 7:00am every day
Alarm.alarmRepeat(0,17,20,Nightmode); // 7:00pm every day
Float temp = getTemperature() ; // DS18B20 code goes into this subroutine

}

void Daymode()
{
if (temp > DAYHIGH) // better use #define for all the constants
{
startFreezer();
}
if (temp < DAYLOW)
{
stopFreezer();
}
}

void Nightmode()
{
if (temp > NIGHTHIGH) // better use #define for all the constants
{
startFreezer();
}
if (temp < NIGHTLOW)
{
stopFreezer();
}
}