I want to convert the unix timestamp returned by time() as time_t to an integer. I've been searching for a solution for 20 minutes, and decided to ask here.
Every solution I have found has not worked. When trying to cast from time_t to int, I get errors:
long int t = static_cast<long int> time(NULL);
error C2061: syntax error : identifier 'time'
error C2146: syntax error : missing '(' before identifier 'time'
I am very very new to C++. Thanks in advance.