ok, I've been looking around quite a bit, but am still having problems with this.

I can easily display the time with a variety of code, a simple version being..


time_t rawtim;
rawtim=time(NULL);
cout<<ctime(&rawtim);

..but
I need to compare the time(specifically the hour)to see if it has past 17:00

is there any way I can stick this into a char array to isolate the hour to compare it? or is there another, easier way?

thanks for any help,
James
HB9/KC5ZFZ