time_t to int
long int t = static_cast<long int> (time(NULL));
Envious Echidna
long int t = static_cast<long int> (time(NULL));