struct tm transfert;
struct timeval tval;
struct timezone tzone;
- int status;
-
- status = gettimeofday( &tval, &tzone );
+
+ gettimeofday( &tval, &tzone );
memcpy(&transfert, localtime((time_t *)&tval.tv_sec), sizeof(tm));
month = transfert.tm_mon + 1;
}
-int main (int argc, char * argv[])
+int main ()
{
std::cout << "Test started " << std::endl;