    #include <iostream>
    #include <ctime>
    #include <string>
    
    
    std::string now()
    {
      std::time_t now= std::time(0);
      std::tm* now_tm= std::gmtime(&now);
      char buf[42];
      std::strftime(buf, 42, "%Y%m%d %X", now_tm);
      return buf;
    }
    
    int main(){ std::cout<< now()<< '\n'; }