#include <ctime>
using namespace std;
class NowTime
{
public:
	int Time()
	{
		return time(0);
	}

public:
	string DateTime()
	{
		time_t now = time(0);
		tm *p = localtime(&now);
		int a = printf("%d-%d-%d %02d:%02d:%02d\n", 1900 + p->tm_year, 1 + p->tm_mon, p->tm_mday, p->tm_hour, p->tm_min, p->tm_sec);
		return to_string(a);
	}
};