I would like to use 24 Hour format (00-23 Hrs).
What is the simplest method to format a tm_hours (12Hr) value to %H hours?
I can not find an example. My code snippet is below.
struct tm * timeinfo;
timeinfo = localtime(&now);
if ((timeinfo->tm_hour)>= 22) // 10PM Event
//Do something here
Any suggested syntax appreciated.