how to print to lcd

i am working on automating my aquarium, here is my code for aquarium control

#include <TimeAlarms.h>
#include <Time.h>

void setup()
{
 Serial.begin(9600);
 setTime(6,36,00,5,21,15); // set time to Thursday 6:36:00am May 21 2015
 // create the alarms 
 Alarm.alarmRepeat(8,30,00, ActinicONam);  // 8:30am every day actinic lights on
 Alarm.alarmRepeat(9,29,30, ActinicOFFam);  // 9:29am every day actinic lights off
 Alarm.alarmRepeat(9,30,00, DaytimeON);  // 9:30am every day daytime lights on
 Alarm.alarmRepeat(9,59,00, PowerheadOFFam);  // 9:59am every day powerhead off
 Alarm.alarmRepeat(10,00,00, FeedAM);  // 10:00am every day feed fish
 Alarm.alarmRepeat(10,05,00, PowerheadONam);  // 10:05am every day powerhead on
 Alarm.alarmRepeat(16,59,00, PowerheadOFFpm);  // 4:59pm every day powerhead off
 Alarm.alarmRepeat(17,00,00, FeedPM);  // 5:00pm every day feed fish
 Alarm.alarmRepeat(17,05,00, PowerheadONpm);  // 5:05pm every day powerhead on
 Alarm.alarmRepeat(17,29,30, DaytimeOFF);  // 5:29pm every day daytime lights off
 Alarm.alarmRepeat(17,30,00, ActinicONpm);  // 5:30pm every day actinic lights on
 Alarm.alarmRepeat(18,30,00, ActinicOFFpm);  // 8:30am every day actinic lights off
 pinMode(9, OUTPUT);  //actinic lights relay (channel 1)
 pinMode(10, OUTPUT);  //daytime lights relay (channel 2)
 pinMode(11, OUTPUT);  //powerhead relay (channel 3)
 pinMode(12, OUTPUT);  //feeder relay (channel 4)(soon to be changed to servo)
 
 
 digitalWrite(9, LOW);  //start with actinic lights off
 digitalWrite(10, LOW);  //start with daytime lights off
 digitalWrite(11, HIGH);  //start with powerhead on
 digitalWrite(12, LOW);  //do not feed yet

}

void  loop(){  
 digitalClockDisplay();
 Alarm.delay(30000); // wait one second between clock display
}

// functions to be called when an alarm triggers:
void ActinicONam(){
 Serial.println("Alarm: - Actinic lights on!");
 digitalWrite(9, HIGH);    
}

void ActinicOFFam(){
 Serial.println("Alarm: - Actinic lights off!"); 
 digitalWrite(9, LOW);  
}

void DaytimeON(){
 Serial.println("Alarm: - Daytime lights on!");  
 digitalWrite(10, HIGH);  
}

void PowerheadOFFam(){
 Serial.println("Alarm: - Prepare for feeding...");
 digitalWrite(11, LOW);  
}

void FeedAM(){
 Serial.println("Alarm: - Fish are fed!");  
 digitalWrite(12, HIGH);
 delay(1000);
 digitalWrite(12, LOW);  
}

void PowerheadONam(){
 Serial.println("Alarm: - Ocean back to stirring");
 digitalWrite(11, HIGH);  
}

void PowerheadOFFpm(){
 Serial.println("Alarm: - Prepare for feeding...");
 digitalWrite(11, LOW);  
}

void FeedPM(){
 Serial.println("Alarm: - Fish are fed!");  
 digitalWrite(12, HIGH);
 delay(1000);
 digitalWrite(12, LOW);  
}

void PowerheadONpm(){
 Serial.println("Alarm: - Ocean back to stirring");
 digitalWrite(11, HIGH);  
}

void DaytimeOFF(){
 Serial.println("Alarm: - Daytime lights off!");  
 digitalWrite(10, LOW);  
}

void ActinicONpm(){
 Serial.println("Alarm: - Actinic lights on!");
 digitalWrite(9, HIGH);    
}

void ActinicOFFpm(){
 Serial.println("Alarm: - Actinic lights off!"); 
 digitalWrite(9, LOW);  
}


void digitalClockDisplay()
{
 // digital clock display of the time
 Serial.print(hour());
 printDigits(minute());
 printDigits(second());
 Serial.println(); 
}

void printDigits(int digits)
{
 Serial.print(":");
 if(digits < 10)
   Serial.print('0');
 Serial.print(digits);
}

as you can see i am currently printing the time every 30 seconds. i would like to do this on my lcd screen. here is the lcd i own,

http://www.amazon.com/gp/product/B003B22UR0/ref=oh_aui_detailpage_o07_s00?ie=UTF8&psc=1

how can i get the time and my custom alerts to print to the lcd?

i am new to arduino so any help is appreciated!

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

i am creating an automatic aquarium system. everything ran fine until the clock said it was 13:33 (1:33) then the program restarted kind of.

HERE IS THE CODE

#include <TimeAlarms.h>
#include <Time.h>

void setup()
{
 Serial.begin(9600);
 setTime(6,36,00,5,21,15); // set time to Thursday 6:36:00am May 21 2015
 // create the alarms 
 Alarm.alarmRepeat(8,30,00, ActinicONam);  // 8:30am every day actinic lights on
 Alarm.alarmRepeat(9,29,30, ActinicOFFam);  // 9:29am every day actinic lights off
 Alarm.alarmRepeat(9,30,00, DaytimeON);  // 9:30am every day daytime lights on
 Alarm.alarmRepeat(9,59,00, PowerheadOFFam);  // 9:59am every day powerhead off
 Alarm.alarmRepeat(10,00,00, FeedAM);  // 10:00am every day feed fish
 Alarm.alarmRepeat(10,05,00, PowerheadONam);  // 10:05am every day powerhead on
 Alarm.alarmRepeat(16,59,00, PowerheadOFFpm);  // 4:59pm every day powerhead off
 Alarm.alarmRepeat(17,00,00, FeedPM);  // 5:00pm every day feed fish
 Alarm.alarmRepeat(17,05,00, PowerheadONpm);  // 5:05pm every day powerhead on
 Alarm.alarmRepeat(17,29,30, DaytimeOFF);  // 5:29pm every day daytime lights off
 Alarm.alarmRepeat(17,30,00, ActinicONpm);  // 5:30pm every day actinic lights on
 Alarm.alarmRepeat(18,30,00, ActinicOFFpm);  // 8:30am every day actinic lights off
 pinMode(9, OUTPUT);  //actinic lights relay (channel 1)
 pinMode(10, OUTPUT);  //daytime lights relay (channel 2)
 pinMode(11, OUTPUT);  //powerhead relay (channel 3)
 pinMode(12, OUTPUT);  //feeder relay (channel 4)(soon to be changed to servo)
 
 
 digitalWrite(9, LOW);  //start with actinic lights off
 digitalWrite(10, LOW);  //start with daytime lights off
 digitalWrite(11, HIGH);  //start with powerhead on
 digitalWrite(12, LOW);  //do not feed yet

}

void  loop(){  
 digitalClockDisplay();
 Alarm.delay(30000); // wait 30 seconds between clock display
}

// functions to be called when an alarm triggers:
void ActinicONam(){
 Serial.println("Alarm: - Actinic lights on!");
 digitalWrite(9, HIGH);    
}

void ActinicOFFam(){
 Serial.println("Alarm: - Actinic lights off!"); 
 digitalWrite(9, LOW);  
}

void DaytimeON(){
 Serial.println("Alarm: - Daytime lights on!");  
 digitalWrite(10, HIGH);  
}

void PowerheadOFFam(){
 Serial.println("Alarm: - Prepare for feeding...");
 digitalWrite(11, LOW);  
}

void FeedAM(){
 Serial.println("Alarm: - Fish are fed!");  
 digitalWrite(12, HIGH);
 delay(1000);
 digitalWrite(12, LOW);  
}

void PowerheadONam(){
 Serial.println("Alarm: - Ocean back to stirring");
 digitalWrite(11, HIGH);  
}

void PowerheadOFFpm(){
 Serial.println("Alarm: - Prepare for feeding...");
 digitalWrite(11, LOW);  
}

void FeedPM(){
 Serial.println("Alarm: - Fish are fed!");  
 digitalWrite(12, HIGH);
 delay(1000);
 digitalWrite(12, LOW);  
}

void PowerheadONpm(){
 Serial.println("Alarm: - Ocean back to stirring");
 digitalWrite(11, HIGH);  
}

void DaytimeOFF(){
 Serial.println("Alarm: - Daytime lights off!");  
 digitalWrite(10, LOW);  
}

void ActinicONpm(){
 Serial.println("Alarm: - Actinic lights on!");
 digitalWrite(9, HIGH);    
}

void ActinicOFFpm(){
 Serial.println("Alarm: - Actinic lights off!"); 
 digitalWrite(9, LOW);  
}


void digitalClockDisplay()
{
 // digital clock display of the time
 Serial.print(hour());
 printDigits(minute());
 printDigits(second());
 Serial.println(); 
}

void printDigits(int digits)
{
 Serial.print(":");
 if(digits < 10)
   Serial.print('0');
 Serial.print(digits);
}

HERE IS THE SERIAL PRINT

3:16:01
13:16:31
13:17:01
13:17:31
13:18:01
13:18:31
13:19:01
13:19:31
13:20:01
13:20:31
13:21:01
13:21:31
13:22:01
13:22:31
13:23:01
13:23:31
13:24:01
13:24:31
13:25:01
13:25:31
13:26:01
13:26:31
13:27:01
13:27:31
13:28:01
13:28:31
13:29:01
13:29:31
13:30:01
13:30:31
13:31:01
13:31:31
13:32:01
13:32:31
13:33:01
Alarm: - Fish are fed!
Alarm: - Ocean back to stirring
6:36:19
Alarm: - Actinic lights on!
Alarm: - Actinic lights off!
Alarm: - Daytime lights on!
Alarm: - Prepare for feeding...
6:36:49
6:37:19
6:37:49
6:38:19
6:38:49
6:39:19
6:39:49
6:40:19
6:40:49
6:41:19
6:41:49
6:42:19
6:42:49
6:43:19
6:43:49
6:44:19
6:44:49
6:45:19
6:45:49

DOES ANYBODY SEE A PROBLEM WITH MY CODE that would be causing the timer to restart at an odd time?

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

HERE IS THE CODE

But where are the code tags?

Schematic?

All you had to do was go to the SainSmart website page for that product

Welcome to the Forum. To get the most out of the Forum, please read Nick Gammon’s two posts at the top of the page. As AWOL suggested, you may want to format your code in the IDE before posting using Ctrl-T and then use the code tags (e.g., click the “<?>” symbol) for posting code. Also, when an external circuit is being controlled, a schematic often helps you get a faster answer.

but how do I print to the lcd screen (is there a command like lcd.print(digital.write(time)))

it shouldnt malfunction due to hardware, all i have is 4 digital outputs (9,10,11,12) running to a seperate relay board

http://www.arduino.cc/en/Reference/LiquidCrystalPrint

kidsoccer78: it shouldnt malfunction due to hardware, all i have is 4 digital outputs (9,10,11,12) running to a seperate relay board

Translation: I don't have a schematic.

How are the relay coils and contacts powered? If you have all 4 powered at once, what kind of current load does that present to the little 5V onboard regulator?

the relay is powered by the 5v onboard output. the relay board draws very little being that it is a solid state relay. i also didnt experience the time error at a time of relay high or low output, so there was no significant power change...

Disconnect the relays and run it. See what happens.

Got nothing to offer then. Maybe some conflict between the 2 libraries?

setTime(6,36,00,5,21,15); // set time to Thursday 6:36:00am May 21 2015

Comment this line out and try again.

How is the arduino being powered, and is the supply stable?

Check this recent thread where alarm resetting was caused by the power supply. http://forum.arduino.cc/index.php?topic=322062.0

Have you increased the number of alarms that can be set in the TimeAlarms library ?

UKHeliBob: Have you increased the number of alarms that can be set in the TimeAlarms library ?

I really think that that is his (or her) problem.

Sometimes you have to dig around to find these things.

In TimeAlarms.h there is a line like this:

#define dtNBR_ALARMS 6 // max is 255

The number 6 in that line is the maximum number of alarms you can have at one time. The OP will need to change this number to at least 12 because s/he wants 12 alarms.

kidsoccer78: but how do I print to the lcd screen (is there a command like lcd.print(digital.write(time)))

Where are your eyes????

There is a sample Arduino program linked on that page.

ieee488: Where are your eyes????

There is a sample Arduino program linked on that page.

If he was capable of that, would he not have read the instructions on how to post to the forum?

i resterted the arduino and it seems to be working fine again. i was programing two arduinos through the same usb hub so i think that was a problem. if you guys can help me with displaying my current serial print on an lcd that would be awesme! does anyone know if i just use lcd.print?