Lines Matching refs:t

212 	struct st_mysqlnd_time t;  in ps_fetch_time()  local
219 t.time_type = MYSQLND_TIMESTAMP_TIME; in ps_fetch_time()
220 t.neg = (bool) to[0]; in ps_fetch_time()
222 t.day = (zend_ulong) sint4korr(to+1); in ps_fetch_time()
223 t.hour = (unsigned int) to[5]; in ps_fetch_time()
224 t.minute = (unsigned int) to[6]; in ps_fetch_time()
225 t.second = (unsigned int) to[7]; in ps_fetch_time()
226 t.second_part = (length > 8) ? (zend_ulong) sint4korr(to+8) : 0; in ps_fetch_time()
227 t.year = t.month= 0; in ps_fetch_time()
228 if (t.day) { in ps_fetch_time()
230 t.hour += t.day*24; in ps_fetch_time()
231 t.day = 0; in ps_fetch_time()
236 memset(&t, 0, sizeof(t)); in ps_fetch_time()
237 t.time_type = MYSQLND_TIMESTAMP_TIME; in ps_fetch_time()
242 (t.neg ? "-" : ""), t.hour, t.minute, t.second, field->decimals, in ps_fetch_time()
243 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)))); in ps_fetch_time()
246 (t.neg ? "-" : ""), t.hour, t.minute, t.second)); in ps_fetch_time()
257 struct st_mysqlnd_time t = {0}; in ps_fetch_date() local
264 t.time_type = MYSQLND_TIMESTAMP_DATE; in ps_fetch_date()
265 t.neg = 0; in ps_fetch_date()
267 t.second_part = t.hour = t.minute = t.second = 0; in ps_fetch_date()
269 t.year = (unsigned int) sint2korr(to); in ps_fetch_date()
270 t.month = (unsigned int) to[2]; in ps_fetch_date()
271 t.day = (unsigned int) to[3]; in ps_fetch_date()
275 memset(&t, 0, sizeof(t)); in ps_fetch_date()
276 t.time_type = MYSQLND_TIMESTAMP_DATE; in ps_fetch_date()
279 ZVAL_STR(zv, zend_strpprintf(0, "%04u-%02u-%02u", t.year, t.month, t.day)); in ps_fetch_date()
289 struct st_mysqlnd_time t; in ps_fetch_datetime() local
296 t.time_type = MYSQLND_TIMESTAMP_DATETIME; in ps_fetch_datetime()
297 t.neg = 0; in ps_fetch_datetime()
299 t.year = (unsigned int) sint2korr(to); in ps_fetch_datetime()
300 t.month = (unsigned int) to[2]; in ps_fetch_datetime()
301 t.day = (unsigned int) to[3]; in ps_fetch_datetime()
304 t.hour = (unsigned int) to[4]; in ps_fetch_datetime()
305 t.minute = (unsigned int) to[5]; in ps_fetch_datetime()
306 t.second = (unsigned int) to[6]; in ps_fetch_datetime()
308 t.hour = t.minute = t.second= 0; in ps_fetch_datetime()
310 t.second_part = (length > 7) ? (zend_ulong) sint4korr(to+7) : 0; in ps_fetch_datetime()
314 memset(&t, 0, sizeof(t)); in ps_fetch_datetime()
315 t.time_type = MYSQLND_TIMESTAMP_DATETIME; in ps_fetch_datetime()
320 t.year, t.month, t.day, t.hour, t.minute, t.second, field->decimals, in ps_fetch_datetime()
321 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)))); in ps_fetch_datetime()
324 t.year, t.month, t.day, t.hour, t.minute, t.second)); in ps_fetch_datetime()