Realy a dont know how I was missing this !
Anyway, thanks alot for the help ! My code now is:
and works well !
struct tm tim;
struct tm tim2;
now = time(NULL);
now2 = now - (5 * 60);
tim = *(localtime(&now));
tim2 = *(localtime(&now2));
i = strftime(s,50,"%b %d, %Y; %H:%M:%S",&tim);
i2 = strftime(s2,50,"%b %d, %Y; %H:%M:%S",&tim2);
About running every 5 minutes, this is a daemon that sleeps for 5 seconds and reads the file again !
Once more, thanks !