#include #include // An example of getting the current hour and minute with time.h's `localtime` void main () { time_t rawtime; time(&rawtime); struct tm *current_time; current_time = localtime( &rawtime ); printf("%d:%d", current_time->tm_hour, current_time->tm_min); }