Problem with time library

Hi!

I would like to compare time in if statment like: if((current_hour == alarm_hour)&&(current_minute == alarm_minute)) I know that i could use Time alarm library but i m runing out of space on arduino nano so time alarm library is not ok for me.

Thank you for your answer. :)

Where are the 4 variables used in the comparison coming from ?

So i alredy found bigger problem, that i can not set up time using int variables setTime(int,int,int,int,int,int)
becouse int does not allow leading zero in front of a number.
Does anybody know how to set up time different way.

Glavna.ino (8.89 KB)

int does not allow leading zero in front of a number.

What type of variables does the setTime() function take as its parameters ?

The printing of leading zeros should surely be handled by the display routine