Lines Matching refs:t

216 	struct st_mysqlnd_time t;  in ps_fetch_time()  local
224 t.time_type = MYSQLND_TIMESTAMP_TIME; in ps_fetch_time()
225 t.neg = (zend_bool) to[0]; in ps_fetch_time()
227 t.day = (zend_ulong) sint4korr(to+1); in ps_fetch_time()
228 t.hour = (unsigned int) to[5]; in ps_fetch_time()
229 t.minute = (unsigned int) to[6]; in ps_fetch_time()
230 t.second = (unsigned int) to[7]; in ps_fetch_time()
231 t.second_part = (length > 8) ? (zend_ulong) sint4korr(to+8) : 0; in ps_fetch_time()
232 t.year = t.month= 0; in ps_fetch_time()
233 if (t.day) { in ps_fetch_time()
235 t.hour += t.day*24; in ps_fetch_time()
236 t.day = 0; in ps_fetch_time()
241 memset(&t, 0, sizeof(t)); in ps_fetch_time()
242 t.time_type = MYSQLND_TIMESTAMP_TIME; in ps_fetch_time()
250 (t.neg ? "-" : ""), in ps_fetch_time()
251 t.hour, in ps_fetch_time()
252 t.minute, in ps_fetch_time()
253 t.second, in ps_fetch_time()
255 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)) in ps_fetch_time()
258 …length = mnd_sprintf(&value, 0, "%s%02u:%02u:%02u", (t.neg ? "-" : ""), t.hour, t.minute, t.second… in ps_fetch_time()
273 struct st_mysqlnd_time t = {0}; in ps_fetch_date() local
281 t.time_type = MYSQLND_TIMESTAMP_DATE; in ps_fetch_date()
282 t.neg = 0; in ps_fetch_date()
284 t.second_part = t.hour = t.minute = t.second = 0; in ps_fetch_date()
286 t.year = (unsigned int) sint2korr(to); in ps_fetch_date()
287 t.month = (unsigned int) to[2]; in ps_fetch_date()
288 t.day = (unsigned int) to[3]; in ps_fetch_date()
292 memset(&t, 0, sizeof(t)); in ps_fetch_date()
293 t.time_type = MYSQLND_TIMESTAMP_DATE; in ps_fetch_date()
296 length = mnd_sprintf(&value, 0, "%04u-%02u-%02u", t.year, t.month, t.day); in ps_fetch_date()
310 struct st_mysqlnd_time t; in ps_fetch_datetime() local
318 t.time_type = MYSQLND_TIMESTAMP_DATETIME; in ps_fetch_datetime()
319 t.neg = 0; in ps_fetch_datetime()
321 t.year = (unsigned int) sint2korr(to); in ps_fetch_datetime()
322 t.month = (unsigned int) to[2]; in ps_fetch_datetime()
323 t.day = (unsigned int) to[3]; in ps_fetch_datetime()
326 t.hour = (unsigned int) to[4]; in ps_fetch_datetime()
327 t.minute = (unsigned int) to[5]; in ps_fetch_datetime()
328 t.second = (unsigned int) to[6]; in ps_fetch_datetime()
330 t.hour = t.minute = t.second= 0; in ps_fetch_datetime()
332 t.second_part = (length > 7) ? (zend_ulong) sint4korr(to+7) : 0; in ps_fetch_datetime()
336 memset(&t, 0, sizeof(t)); in ps_fetch_datetime()
337 t.time_type = MYSQLND_TIMESTAMP_DATETIME; in ps_fetch_datetime()
345 t.year, in ps_fetch_datetime()
346 t.month, in ps_fetch_datetime()
347 t.day, in ps_fetch_datetime()
348 t.hour, in ps_fetch_datetime()
349 t.minute, in ps_fetch_datetime()
350 t.second, in ps_fetch_datetime()
352 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)) in ps_fetch_datetime()
355 …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()