time_t, time(NULL)

time(NULL)函数还回当前的时间。

time_t  ct = time(NULL);
double ct = time(NULL);

需要注意的是time(NULL)还回的是UTC时间。

你可能感兴趣的:(null)