void GetTime (tsTime *tt) { long lt; struct tm tvar; //struct tm *__cdecl localtime(const time_t *t); time_t(<); tvar = *localtime (<); tt->cHour = tvar.tm_hour; tt->cMinute = tvar.tm_min; tt->cSecond = tvar.tm_sec; return; }
long
lt
time_t
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)