Lines Matching refs:t

232 	struct st_mysqlnd_time t;  in ps_fetch_time()  local
240 t.time_type = MYSQLND_TIMESTAMP_TIME; in ps_fetch_time()
241 t.neg = (zend_bool) to[0]; in ps_fetch_time()
243 t.day = (unsigned long) sint4korr(to+1); in ps_fetch_time()
244 t.hour = (unsigned int) to[5]; in ps_fetch_time()
245 t.minute = (unsigned int) to[6]; in ps_fetch_time()
246 t.second = (unsigned int) to[7]; in ps_fetch_time()
247 t.second_part = (length > 8) ? (unsigned long) sint4korr(to+8) : 0; in ps_fetch_time()
248 t.year = t.month= 0; in ps_fetch_time()
249 if (t.day) { in ps_fetch_time()
251 t.hour += t.day*24; in ps_fetch_time()
252 t.day = 0; in ps_fetch_time()
257 memset(&t, 0, sizeof(t)); in ps_fetch_time()
258 t.time_type = MYSQLND_TIMESTAMP_TIME; in ps_fetch_time()
265 length = spprintf(&value, 0, "%s%02u:%02u:%02u", (t.neg ? "-" : ""), t.hour, t.minute, t.second); in ps_fetch_time()
289 struct st_mysqlnd_time t = {0}; in ps_fetch_date() local
297 t.time_type= MYSQLND_TIMESTAMP_DATE; in ps_fetch_date()
298 t.neg= 0; in ps_fetch_date()
300 t.second_part = t.hour = t.minute = t.second = 0; in ps_fetch_date()
302 t.year = (unsigned int) sint2korr(to); in ps_fetch_date()
303 t.month = (unsigned int) to[2]; in ps_fetch_date()
304 t.day = (unsigned int) to[3]; in ps_fetch_date()
308 memset(&t, 0, sizeof(t)); in ps_fetch_date()
309 t.time_type = MYSQLND_TIMESTAMP_DATE; in ps_fetch_date()
316 length = spprintf(&value, 0, "%04u-%02u-%02u", t.year, t.month, t.day); in ps_fetch_date()
340 struct st_mysqlnd_time t; in ps_fetch_datetime() local
348 t.time_type = MYSQLND_TIMESTAMP_DATETIME; in ps_fetch_datetime()
349 t.neg = 0; in ps_fetch_datetime()
351 t.year = (unsigned int) sint2korr(to); in ps_fetch_datetime()
352 t.month = (unsigned int) to[2]; in ps_fetch_datetime()
353 t.day = (unsigned int) to[3]; in ps_fetch_datetime()
356 t.hour = (unsigned int) to[4]; in ps_fetch_datetime()
357 t.minute = (unsigned int) to[5]; in ps_fetch_datetime()
358 t.second = (unsigned int) to[6]; in ps_fetch_datetime()
360 t.hour = t.minute = t.second= 0; in ps_fetch_datetime()
362 t.second_part = (length > 7) ? (unsigned long) sint4korr(to+7) : 0; in ps_fetch_datetime()
366 memset(&t, 0, sizeof(t)); in ps_fetch_datetime()
367 t.time_type = MYSQLND_TIMESTAMP_DATETIME; in ps_fetch_datetime()
375 t.year, t.month, t.day, t.hour, t.minute, t.second); in ps_fetch_datetime()