#include <iostream>
#include <string>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
std::string GetCompileTime()
{
std::string achMonthes[] =
{
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
};
std::string strDate = __DATE__;
printf("strDate %s\n", strDate.c_str());
int year = atoi(strDate.substr(strDate.length() - 4).c_str());
int month = 0;
for(int i = 0; i < 12; i++)
{
if(strDate.find(achMonthes[i]) != string::npos)
{
month = i + 1;
break;
}
}
std::string dayStr = strDate.substr(4, 2);
int day = atoi(dayStr.c_str());
std::string strTime = __TIME__;
printf("strTime %s\n", strTime.c_str());