Lines Matching full:stm
230 static void setallfields (lua_State *L, struct tm *stm) { in setallfields() argument
231 setfield(L, "year", stm->tm_year, 1900); in setallfields()
232 setfield(L, "month", stm->tm_mon, 1); in setallfields()
233 setfield(L, "day", stm->tm_mday, 0); in setallfields()
234 setfield(L, "hour", stm->tm_hour, 0); in setallfields()
235 setfield(L, "min", stm->tm_min, 0); in setallfields()
236 setfield(L, "sec", stm->tm_sec, 0); in setallfields()
237 setfield(L, "yday", stm->tm_yday, 1); in setallfields()
238 setfield(L, "wday", stm->tm_wday, 1); in setallfields()
239 setboolfield(L, "isdst", stm->tm_isdst); in setallfields()
307 struct tm tmr, *stm; in os_date() local
309 stm = l_gmtime(&t, &tmr); in os_date()
313 stm = l_localtime(&t, &tmr); in os_date()
314 if (stm == NULL) /* invalid date? */ in os_date()
319 setallfields(L, stm); in os_date()
334 reslen = strftime(buff, SIZETIMEFMT, cc, stm); in os_date()