MCPcopy Index your code
hub / github.com/NetHack/NetHack / time

Function time

outdated/sys/wince/celib.c:54–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54time_t __cdecl time(time_t *timeptr)
55{
56 SYSTEMTIME stm;
57 GetLocalTime(&stm);
58
59 _t_cnv.tm_val.yr = stm.wYear - 1900;
60 _t_cnv.tm_val.mo = stm.wMonth;
61 _t_cnv.tm_val.dd = stm.wDay;
62 _t_cnv.tm_val.hh = stm.wHour;
63 _t_cnv.tm_val.mm = stm.wMinute;
64 _t_cnv.tm_val.ss = stm.wSecond;
65 _t_cnv.tm_val.wd = stm.wDayOfWeek;
66
67 if (timeptr)
68 *timeptr = _t_cnv.t_val;
69 return _t_cnv.t_val;
70}
71
72time_t __cdecl mktime(struct tm *tb)
73{

Callers 11

veryoldFunction · 0.85
mainFunction · 0.85
sys_random_seedFunction · 0.85
sys_random_seedFunction · 0.85
veryoldFunction · 0.85
pcmainFunction · 0.85
getnowFunction · 0.85
u_init_miscFunction · 0.85
do_dateFunction · 0.85
get_preambleFunction · 0.85
generate_c_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected