C++相談室 part44
■ このスレッドは過去ログ倉庫に格納されています
0445デフォルトの名無しさん
2005/10/28(金) 02:39:49これだと標準じゃないのかな?
#include <iostream>
#include <ctime>
using namespace std;
int main ()
{
time_t now_ (time (NULL));
tm now;
gmtime_r (&now_, &now);
cout << now.tm_mon << endl;
return 0;
}
■ このスレッドは過去ログ倉庫に格納されています