2 * wintime.c - Avoid trouble with time() returning (time_t)-1 on Windows.
\r
8 struct tm ltime(void)
\r
14 tm.tm_sec=st.wSecond;
\r
15 tm.tm_min=st.wMinute;
\r
16 tm.tm_hour=st.wHour;
\r
18 tm.tm_mon=st.wMonth-1;
\r
19 tm.tm_year=(st.wYear>=1900?st.wYear-1900:0);
\r
20 tm.tm_wday=st.wDayOfWeek;
\r
21 tm.tm_yday=-1; /* GetLocalTime doesn't tell us */
\r
22 tm.tm_isdst=0; /* GetLocalTime doesn't tell us */
\r