Today date output as word
Hello everyone!
I would like my output of the day be like this:
Example today date is: Tuesday 12:00
MY current program output's 29 12:00
1 2 3 4 5 6 7 8 9 10 11
|
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time (&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer,80,"%d %I:%M",timeinfo);
std::string str(buffer);
std::cout << str;
|
Topic archived. No new replies allowed.