#include <iostream>
#include <time.h>
#include <string.h>
using namespace std;
int main()
{
time_t now;
int unixTime = (int)time(&now);
time_t tick = (time_t)unixTime;
struct tm tm;
char s[64];
tm = *localtime(&tick);
strftime(s, sizeof(s), "%Y-%m-%d %H:%M:%S", &tm);
printf("%d: %s\n", (int)unixTime, s);
return 0;
}