IR remote recieve and store coding

I am not sure how to go about this. Im using RC5 protocol and my code writing skills are extremely weak :roll_eyes:

Im trying to store the values recieved with a software RTC to flip relays at wanted times so for example:
If i press 1 then 2 then 3 then 0 on the remote, i want the time 12:30 stored so when the time is reached, a relay on a digital pin will flip.

Should i be using switch case statments?
What should the command libray look like in code, for example the button 1 on the remote has a hex value of 801, button 2 is 802, etc...

Ive looked at a few examples but i am very confused... :disappointed_relieved:

Maybe this library will help: