Original Post
I'm working with time, and I can't get a current time on a second try. I'm working with std::tm, std::time_t, and my books don't make any sense. My start up time code is as follows: std::time_t startTime = *time(0); std::tm curTime = * std::localtime(&startTime); int tempCurTime[3]; tempCurTime[0] = curTime.tm_hour; tempCurTime[1] = curTime.tm_min; tempCurTime[2] = curTime.tm_sec; The above works fine, but I can't figure out how to get the current time from the system after the above code. Below is what I try and it fails to compile: startTime = *time(0); curTime = * std::localtime(&startTime); Although the compiler says: time cannot be used as a function I can't find any other code to get the current time. Thank you in advance, BladeStone