普通strftimeを使いましたら
time_t current;
time(¤t);
struct tm* current_tm = localtime(¤t);
char buf[256];
strftime(buf, 255, "%c", current_tm);
cout << buf << endl;
こうな感じになります
Tue Apr 19 11:47:16 2016
曜日はTue
になります。
もしロケールを設定したら。
setlocale( LC_TIME, "ja_JP" );
time_t current;
time(¤t);
struct tm* current_tm = localtime(¤t);
char buf[256];
strftime(buf, 255, "%c", current_tm);
cout << buf << endl;
結果:
火 4/19 11:50:14 2016
曜日は火
になります。
他のフォーマットに関して、ここで参考できます。