Простые типы / Дата и время

#include <iostream>
using namespace std;

time_t now = time(0);

cout << "now is " << now;