so I've did this simple sketch could be a good starting point:
y1 = 13;
mon1 = 2;
d1 = 6;
h1 = 9;
min1 = 25;
sec1 = 01;
time_t t = now();
sprintf(s, "%04d%02d%02d%02d%02d%02d", year(t), month(t), day(t), hour(t), minute(t), second(t));
sprintf(s1, "%04d%02d%02d%02d%02d%02d", (y1+2000), mon1, d1, h1, min1, sec1);
Serial.println("Stampo S ");
Serial.println("Stampo S1 ");
if (strcmp(s,s1) == 0)
so now just to think about the structure how use it ?
do you think that could be fine ?