#include <iostream>
using namespace std;
#include <time.h>
int main()
{
time_t t=time(0);
char tmp[32]={0};
strftime(tmp,sizeof(tmp),"%Y-%m-%d %H:%M:%S",localtime(&t));
cout<<tmp<<endl;
}
#include <iostream>
using namespace std;
#include <time.h>
int main()
{
time_t t=time(0);
char tmp[32]={0};
strftime(tmp,sizeof(tmp),"%Y-%m-%d %H:%M:%S",localtime(&t));
cout<<tmp<<endl;
}