#include <iostream>
#include <ctime>
using std::cout;
using std::endl;
int main()
{
time_t t = time(NULL);
tm* now = std::localtime(&t);
cout << now->tm_mon + 1 << '/' << now->tm_mday << "/" << now->tm_year + 1900 << endl;
cout << now->tm_sec << ':' << now->tm_min << ":" << now->tm_hour << endl;
return 0;
}
/*
run:
6/2/2018
6:53:18
*/