Giancarlo Rivas wrote:
--
[ Picked text/plain from multipart/alternative ]
Hi, I wanted to get the local time of the system to save a file with that
data but noticed time() shouldn't be used (USE_VCR_MODE), so what's the
alternate way to get the value?, couldn't find any alternate call.

GetLocalTime()?


SYSTEMTIME st;
GetLocalTime( &st );

int Year = st.wYear;
int Month = st.wMonth;
int DayOfWeek = st.wDayOfWeek;
int Day = st.wDay;
int Hour = st.wHour;
int Min = st.wMinute;
int Sec = st.wSecond;
int MSec = st.wMilliseconds;

...then sprintf() it to a string to be printed out or used as a filename.

--
Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to