Building a Relay triggered Clock

Hi Everyone!

I have a serious question about making the code for my relay triggered Clock Project.
I am using an Arduino ADK with a DS3231 RTC module and I can't figure out how to trigger my output pins according to the current time.
The problem is that ( If I am correct ) the incoming data is pulsing because it is refreshing itself to follow time therefore I can't use that for turning HIGH or LOW a pin or a bunch of them because it will flicker whilst turned HIGH or even be corrupt (too short time to make an argument).
This is my theory but maybe it's true.
So if I could make a "time library" which is not "pulsing or flickering" that I could use to trigger pins to be HIGH or LOW according to the current Hour/Minute/Second would be it. Not speaking of the rest (year, month, day of week)..
With that data I could tell when to turn a relay off-on and just basically manipulate my output pins desired.
Please help

Examples:

"If it is 12:24:00 I want to turn pin 7, pin 9 HIGH and pin 5, pin, 2 LOW for an hour."

Thank You!

DS3231_Serial_Hard-Display.ino (18.8 KB)

"If it is 12:24:00 I want to turn pin 7, pin 9 HIGH and pin 5, pin, 2 LOW for an hour."

Let's express that another way

When the time becomes 12:24:00 set pins 7 and 9 HIGH and pin 2 LOW
When the time becomes 13:24:00 set pins 7 and 9 LOW and pin 2 HIGH

Hey!

Thank your for the program logic correct answer about my naive, kitchen-made example!
And also sorry for my expressions but I am a complete newbie. Excuse me for that.

The good news is I have just figured out my problem. I hooked up my Relays and Litorix display to some of the communication pins that interfered with the DS3231 RTC I2C communication.
Now the "barbarian" logic I have made as a code is working and I can see the time on my display as well as I can trigger any relay at any given time!

If you have any ideas of making this project more efficient please let me know!
Here you can see the updated version of the code.

I am planning to int 3 more pins for 3 buttons to set the time with them.
But I don't know how to do that yet..

Many Thanks!

DS3231_Serial_Hard-Display.ino (27.2 KB)