	#include <iostream>
	#include <ctime>
    #include <string>

    using namespace std;
    
    namespace abc {
        class MyClass {
        protected:
           tm structTime;
        public:
           MyClass() {
               std::time_t t = std::time(nullptr);
               structTime = *std::gmtime(&t);
           }
           const tm& getTM() {
                return structTime;
           }
           std::string foo() { 
               return asctime (&getTM()); 
           }
        };
    }
    
	int main() {
		abc::MyClass myObj;
		cout << myObj.foo() << endl;
	}