Lines Matching refs:usec
2352 static void php_date_get_current_time_with_fraction(time_t *sec, suseconds_t *usec) in php_date_get_current_time_with_fraction() argument
2359 *usec = tp.tv_usec; in php_date_get_current_time_with_fraction()
2362 *usec = 0; in php_date_get_current_time_with_fraction()
2375 suseconds_t usec; in php_date_initialize() local
2454 php_date_get_current_time_with_fraction(&sec, &usec); in php_date_initialize()
2456 php_date_set_time_fraction(now, usec); in php_date_initialize()
2482 PHPAPI void php_date_initialize_from_ts_long(php_date_obj *dateobj, zend_long sec, int usec) /* {{{… in php_date_initialize_from_ts_long() argument
2489 php_date_set_time_fraction(dateobj->time, usec); in php_date_initialize_from_ts_long()
2496 int usec; in php_date_initialize_from_ts_double() local
2511 usec = (int) round(fmod(ts, 1) * 1000000); in php_date_initialize_from_ts_double()
2513 if (UNEXPECTED(abs(usec) == 1000000)) { in php_date_initialize_from_ts_double()
2514 sec += usec > 0 ? 1 : -1; in php_date_initialize_from_ts_double()
2515 usec = 0; in php_date_initialize_from_ts_double()
2518 if (UNEXPECTED(usec < 0)) { in php_date_initialize_from_ts_double()
2532 usec = 1000000 + usec; in php_date_initialize_from_ts_double()
2535 php_date_initialize_from_ts_long(dateobj, sec, usec); in php_date_initialize_from_ts_double()