Lines Matching refs:y

604 static const char *php_date_full_day_name(timelib_sll y, timelib_sll m, timelib_sll d)  in php_date_full_day_name()  argument
606 timelib_sll day_of_week = timelib_day_of_week(y, m, d); in php_date_full_day_name()
613 static const char *php_date_short_day_name(timelib_sll y, timelib_sll m, timelib_sll d) in php_date_short_day_name() argument
615 timelib_sll day_of_week = timelib_day_of_week(y, m, d); in php_date_short_day_name()
666 …case 'D': length = slprintf(buffer, sizeof(buffer), "%s", php_date_short_day_name(t->y, t->m, t->d… in date_format()
668 …case 'l': length = slprintf(buffer, sizeof(buffer), "%s", php_date_full_day_name(t->y, t->m, t->d)… in date_format()
670 …case 'w': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_day_of_week(t->y, t->m, t-… in date_format()
671 …case 'N': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_iso_day_of_week(t->y, t->m… in date_format()
672 …case 'z': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_day_of_year(t->y, t->m, t-… in date_format()
676 …if(!weekYearSet) { timelib_isoweek_from_date(t->y, t->m, t->d, &isoweek, &isoyear); weekYearSet = … in date_format()
679 …if(!weekYearSet) { timelib_isoweek_from_date(t->y, t->m, t->d, &isoweek, &isoyear); weekYearSet = … in date_format()
687 …case 't': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_days_in_month(t->y, t->m))… in date_format()
690 case 'L': length = slprintf(buffer, sizeof(buffer), "%d", timelib_is_leap((int) t->y)); break; in date_format()
691 case 'y': length = slprintf(buffer, sizeof(buffer), "%02d", (int) (t->y % 100)); break; in date_format()
692 … = slprintf(buffer, sizeof(buffer), "%s%04lld", t->y < 0 ? "-" : "", php_date_llabs((timelib_sll) … in date_format()
757 (zend_long) t->y, (int) t->m, (int) t->d, in date_format()
765 php_date_short_day_name(t->y, t->m, t->d), in date_format()
767 (zend_long) t->y, (int) t->h, (int) t->i, (int) t->s, in date_format()
879 timelib_isoweek_from_date(t->y, t->m, t->d, &isoweek, &isoyear); in php_idate()
885 case 'w': retval = (int) timelib_day_of_week(t->y, t->m, t->d); break; in php_idate()
886 case 'z': retval = (int) timelib_day_of_year(t->y, t->m, t->d); break; in php_idate()
893 case 't': retval = (int) timelib_days_in_month(t->y, t->m); break; in php_idate()
896 case 'L': retval = (int) timelib_is_leap((int) t->y); break; in php_idate()
897 case 'y': retval = (int) (t->y % 100); break; in php_idate()
898 case 'Y': retval = (int) t->y; break; in php_idate()
1132 now->y = yea; in php_mktime()
1175 zend_long m, d, y; in PHP_FUNCTION() local
1180 Z_PARAM_LONG(y) in PHP_FUNCTION()
1183 if (y < 1 || y > 32767 || !timelib_valid_date(y, m, d)) { in PHP_FUNCTION()
1236 ta.tm_year = ts->y - 1900; in php_strftime()
1237 ta.tm_wday = timelib_day_of_week(ts->y, ts->m, ts->d); in php_strftime()
1238 ta.tm_yday = timelib_day_of_year(ts->y, ts->m, ts->d); in php_strftime()
1351 add_assoc_long(return_value, "tm_year", ts->y - 1900); in PHP_FUNCTION()
1352 add_assoc_long(return_value, "tm_wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1353 add_assoc_long(return_value, "tm_yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1361 add_next_index_long(return_value, ts->y- 1900); in PHP_FUNCTION()
1362 add_next_index_long(return_value, timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1363 add_next_index_long(return_value, timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1403 add_assoc_long(return_value, "wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1405 add_assoc_long(return_value, "year", ts->y); in PHP_FUNCTION()
1406 add_assoc_long(return_value, "yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1407 add_assoc_string(return_value, "weekday", php_date_full_day_name(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
2091 PHP_DATE_INTERVAL_ADD_PROPERTY("y", y); in date_object_get_properties_interval()
2741 PHP_DATE_PARSE_DATE_SET_TIME_ELEMENT(year, y); in php_date_do_return_parsed_time()
2784 add_assoc_long(&element, "year", parsed_time->relative.y); in php_date_do_return_parsed_time()
2883 if (tmp_time->y != TIMELIB_UNSET) { in php_date_modify()
2884 dateobj->time->y = tmp_time->y; in php_date_modify()
2914 tmp_time->y == 1970 && tmp_time->m == 1 && tmp_time->d == 1 && in php_date_modify()
3263 static void php_date_date_set(zval *object, zend_long y, zend_long m, zend_long d, zval *return_val… in php_date_date_set() argument
3269 dateobj->time->y = y; in php_date_date_set()
3279 zend_long y, m, d; in PHP_FUNCTION() local
3281 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Olll", &object, date_ce_date, &y, &m… in PHP_FUNCTION()
3285 php_date_date_set(object, y, m, d, return_value); in PHP_FUNCTION()
3295 zend_long y, m, d; in PHP_METHOD() local
3298 if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &y, &m, &d) == FAILURE) { in PHP_METHOD()
3303 php_date_date_set(&new_object, y, m, d, return_value); in PHP_METHOD()
3309 static void php_date_isodate_set(zval *object, zend_long y, zend_long w, zend_long d, zval *return_… in php_date_isodate_set() argument
3315 dateobj->time->y = y; in php_date_isodate_set()
3319 dateobj->time->relative.d = timelib_daynr_from_weeknr(y, w, d); in php_date_isodate_set()
3329 zend_long y, w, d = 1; in PHP_FUNCTION() local
3331 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Oll|l", &object, date_ce_date, &y, &… in PHP_FUNCTION()
3335 php_date_isodate_set(object, y, w, d, return_value); in PHP_FUNCTION()
3345 zend_long y, w, d = 1; in PHP_METHOD() local
3348 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ll|l", &y, &w, &d) == FAILURE) { in PHP_METHOD()
3353 php_date_isodate_set(&new_object, y, w, d, return_value); in PHP_METHOD()
3895 GET_VALUE_FROM_STRUCT(y, "y"); in date_interval_read_property()
3945 SET_VALUE_FROM_STRUCT(y, "y"); in date_interval_write_property()
4062 PHP_DATE_INTERVAL_READ_PROPERTY("y", y, timelib_sll, -1) in php_date_interval_initialize_from_hash()
4180 case 'Y': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->y); break; in date_interval_format()
4181 case 'y': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->y); break; in date_interval_format()