49 struct tm* now = localtime(&t);
62 if (now->tm_mday < 10) {
63 ss <<
"0" << now->tm_mday <<
".";
65 ss << now->tm_mday <<
".";
67 if (now->tm_mon < 10) {
68 ss <<
"0" << now->tm_mon <<
"-";
70 ss << now->tm_mon <<
"-";
72 if (now->tm_hour < 10) {
73 ss <<
"0" << now->tm_hour <<
".";
75 ss << now->tm_hour <<
".";
77 if (now->tm_min < 10) {
78 ss <<
"0" << now->tm_min <<
".";
80 ss << now->tm_min <<
".";
82 if (now->tm_sec < 10) {
83 ss <<
"0" << now->tm_sec;
87 ss <<
".log" << std::endl;
89 std::getline(ss, filename);
90 buf.open(filename.c_str(), std::ios::out);
static int UNIFORM_NUMBER
static std::string LOG_NAME
static std::string TEAM_NAME
static char AGENT_TYPE
p = Player, t = Trainer