rtc ds 1302 end relay

hi to all of you .. i have made an application with arduino uno for a system with solarpanels .. i would like someone to tell me how i can open pr close a relay depending the time i have it programmed ??? my english is not so good and so me knownlege about arduino . i put the code here that i have already make and use .. if you see any mistakes please be free to fix them and help me ..... ty.

#include "Adafruit_GFX.h"
#include "Adafruit_PCD8544.h"
#include <math.h>
#include <virtuabotixRTC.h>

#define temppin A0 // temp pin
#define VoltPin A4 // Voltage pin
#define CurrPin A5 // Current pin

// pin 7 - Serial clock out (SCLK)
// pin 6 - Serial data out (DIN)
// pin 5 - Data/Command select (D/C)
// pin 4 - LCD chip select (CS)
// pin 3 - LCD reset (RST)
Adafruit_PCD8544 display = Adafruit_PCD8544(3, 4, 5, 7, 6);

virtuabotixRTC myRTC(A1, A2, A3); // pin gia roloi

int reading;
int value;
int VoltageValue;
int CurrentValue;
int relay1 =9;
int relay2 =10;
int fan =11;
int prev = LOW;
int refresh = 1000;
int led = 13;

float kVD = 5; // Divider Ratio
float kI = 1; // Current Ratio - value of Rg resistor
float voltage;
float current;

double Thermister(int RawADC) { // gia aisthitires thermokrasias
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );
Temp = Temp - 273.15; // Convert Kelvin to Celcius
return Temp;
}

void setup() {
myRTC.setDS1302Time(00, 27, 23, 6, 18, 12, 2014);
pinMode(fan,OUTPUT);
pinMode(relay1,OUTPUT);
pinMode(relay2,OUTPUT);
pinMode(led, OUTPUT);
display.begin();
display.setContrast(40);
delay(1000);
display.clearDisplay(); // clears the screen and buffer
display.setTextSize(0.4); // set text size
display.setTextColor(BLACK);
delay(1000);
}

void loop() {
myRTC.updateTime();
VoltageValue = analogRead(VoltPin);
CurrentValue = analogRead(CurrPin);
voltage = VoltageValue * (5.0 / 1023.0) * kVD; // voltage calculation
current = (513.4555555 - analogRead(A5)) * 75.7576 / 1023; // current calculation

digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
// wait for a second

{if (analogRead(Thermister(analogRead(0))) <29) {
digitalWrite(fan,HIGH);

}
}

{if (analogRead(Thermister(analogRead(0))) >35) {
digitalWrite(fan,LOW);

}
}

//-------------- reles1

if (voltage <11.50) { // an kato apo ----- volt klinei o reles exodou. prostasia apo apofortisi
digitalWrite(relay1,HIGH);

}
if (voltage >12.00) { // an pano apo ----- volt anoigei o reles exodou. kali katastasi k sunexizei na dinei reyma.
digitalWrite(relay1,LOW);

}
//--------------- reles2
if (voltage >14.80) { // an pano apo ----- volt KLINEI o reles PANEL. prostasia uperfortisis
digitalWrite(relay2,HIGH);

}
if (voltage <13.50) { // an kato apo ----- volt ANOIGEI o reles PANEL. xana arxizei to fortisma
digitalWrite(relay2,LOW);

}

display.clearDisplay(); // clears the screen and buffer
display.setCursor(0,0);

display.print("");
display.println(myRTC.dayofmonth);
display.println();
display.setCursor(11,0);
display.print(".");
display.println(myRTC.month);
display.println();
display.setCursor(27,0);
display.print(".");
display.println(myRTC.year); // power calculation
display.setCursor(0,8);
display.print("");
display.println(myRTC.hours);
display.println();
display.setCursor(10,8);
display.print(":");
display.println(myRTC.minutes);
display.println();
display.setCursor(26,8);
display.print("-");
display.println(myRTC.seconds); // power calculation

display.setCursor(0,16);

display.print("V:");
display.println(voltage);
display.println();
display.setCursor(45,16);
display.print("A:");
display.println(current);
display.println();
display.setCursor(0,24);
display.print("W:");
display.println(current * voltage); // power calculation
display.setCursor(0,32);
display.print("T:");
display.println(Thermister(analogRead(0))); // power calculatio
display.setCursor(47,32);
display.print("-Mppt-");

display.setCursor(0,40);
display.print("Kostas_90210");

display.display();

delay(500);
}