May 16th, 1999, 05:15 PM
What is the best way to get the time stored into a variable? In particular, I am looking for a way to get the number of seconds past the minute stored into an integer variable. Thank you, Eric Slater
|
Click to See Complete Forum and Search --> : What time is it? May 16th, 1999, 05:15 PM What is the best way to get the time stored into a variable? In particular, I am looking for a way to get the number of seconds past the minute stored into an integer variable. Thank you, Eric Slater Bob Clarke May 16th, 1999, 08:15 PM SYSTEMTIME sysTime; GetLocalTime(&sysTime); // seconds past the minute word Seconds = sysTime.wSecond; May 17th, 1999, 09:21 AM CTime t = CTime::GetCurrentTime(); int Seconds = t.GetSecond(); codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |