Lines Matching refs:t

215 	struct st_mysqlnd_time t;  in ps_fetch_time()  local
223 t.time_type = MYSQLND_TIMESTAMP_TIME; in ps_fetch_time()
224 t.neg = (zend_bool) to[0]; in ps_fetch_time()
226 t.day = (zend_ulong) sint4korr(to+1); in ps_fetch_time()
227 t.hour = (unsigned int) to[5]; in ps_fetch_time()
228 t.minute = (unsigned int) to[6]; in ps_fetch_time()
229 t.second = (unsigned int) to[7]; in ps_fetch_time()
230 t.second_part = (length > 8) ? (zend_ulong) sint4korr(to+8) : 0; in ps_fetch_time()
231 t.year = t.month= 0; in ps_fetch_time()
232 if (t.day) { in ps_fetch_time()
234 t.hour += t.day*24; in ps_fetch_time()
235 t.day = 0; in ps_fetch_time()
240 memset(&t, 0, sizeof(t)); in ps_fetch_time()
241 t.time_type = MYSQLND_TIMESTAMP_TIME; in ps_fetch_time()
244 …length = mnd_sprintf(&value, 0, "%s%02u:%02u:%02u", (t.neg ? "-" : ""), t.hour, t.minute, t.second… in ps_fetch_time()
258 struct st_mysqlnd_time t = {0}; in ps_fetch_date() local
266 t.time_type = MYSQLND_TIMESTAMP_DATE; in ps_fetch_date()
267 t.neg = 0; in ps_fetch_date()
269 t.second_part = t.hour = t.minute = t.second = 0; in ps_fetch_date()
271 t.year = (unsigned int) sint2korr(to); in ps_fetch_date()
272 t.month = (unsigned int) to[2]; in ps_fetch_date()
273 t.day = (unsigned int) to[3]; in ps_fetch_date()
277 memset(&t, 0, sizeof(t)); in ps_fetch_date()
278 t.time_type = MYSQLND_TIMESTAMP_DATE; in ps_fetch_date()
281 length = mnd_sprintf(&value, 0, "%04u-%02u-%02u", t.year, t.month, t.day); in ps_fetch_date()
295 struct st_mysqlnd_time t; in ps_fetch_datetime() local
303 t.time_type = MYSQLND_TIMESTAMP_DATETIME; in ps_fetch_datetime()
304 t.neg = 0; in ps_fetch_datetime()
306 t.year = (unsigned int) sint2korr(to); in ps_fetch_datetime()
307 t.month = (unsigned int) to[2]; in ps_fetch_datetime()
308 t.day = (unsigned int) to[3]; in ps_fetch_datetime()
311 t.hour = (unsigned int) to[4]; in ps_fetch_datetime()
312 t.minute = (unsigned int) to[5]; in ps_fetch_datetime()
313 t.second = (unsigned int) to[6]; in ps_fetch_datetime()
315 t.hour = t.minute = t.second= 0; in ps_fetch_datetime()
317 t.second_part = (length > 7) ? (zend_ulong) sint4korr(to+7) : 0; in ps_fetch_datetime()
321 memset(&t, 0, sizeof(t)); in ps_fetch_datetime()
322 t.time_type = MYSQLND_TIMESTAMP_DATETIME; in ps_fetch_datetime()
325 …nd_sprintf(&value, 0, "%04u-%02u-%02u %02u:%02u:%02u", t.year, t.month, t.day, t.hour, t.minute, t in ps_fetch_datetime()