hi,
to get the current time you use this statement: time_t now = time(0);
i was wondering how can i check the time stored in this variable if it falls in a specific time interval, i.e. between 5 and 6 am.
I am thinking one way to do this is to convert the now variable to a structure tm* localtm = localtime(&now);
and then check the time field of the structure, but i was wondering if there is a faster way to do this....
thanks for your help.