简单类型 / 日期和时间

#include <iostream>
using namespace std;

time_t now = time(0);

cout << "now is " << now;