Lines Matching refs:y

652 static const char *php_date_full_day_name(timelib_sll y, timelib_sll m, timelib_sll d)  in php_date_full_day_name()  argument
654 timelib_sll day_of_week = timelib_day_of_week(y, m, d); in php_date_full_day_name()
661 static const char *php_date_short_day_name(timelib_sll y, timelib_sll m, timelib_sll d) in php_date_short_day_name() argument
663 timelib_sll day_of_week = timelib_day_of_week(y, m, d); in php_date_short_day_name()
714 …case 'D': length = slprintf(buffer, sizeof(buffer), "%s", php_date_short_day_name(t->y, t->m, t->d… in date_format()
716 …case 'l': length = slprintf(buffer, sizeof(buffer), "%s", php_date_full_day_name(t->y, t->m, t->d)… in date_format()
718 …case 'w': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_day_of_week(t->y, t->m, t-… in date_format()
719 …case 'N': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_iso_day_of_week(t->y, t->m… in date_format()
720 …case 'z': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_day_of_year(t->y, t->m, t-… in date_format()
724 …if(!weekYearSet) { timelib_isoweek_from_date(t->y, t->m, t->d, &isoweek, &isoyear); weekYearSet = … in date_format()
727 …if(!weekYearSet) { timelib_isoweek_from_date(t->y, t->m, t->d, &isoweek, &isoyear); weekYearSet = … in date_format()
735 …case 't': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_days_in_month(t->y, t->m))… in date_format()
738 case 'L': length = slprintf(buffer, sizeof(buffer), "%d", timelib_is_leap((int) t->y)); break; in date_format()
739 case 'y': length = slprintf(buffer, sizeof(buffer), "%02d", (int) (t->y % 100)); break; in date_format()
740 … = slprintf(buffer, sizeof(buffer), "%s%04lld", t->y < 0 ? "-" : "", php_date_llabs((timelib_sll) … in date_format()
741 …buffer, sizeof(buffer), "%s%04lld", t->y < 0 ? "-" : (t->y >= 10000 ? "+" : ""), php_date_llabs((t… in date_format()
742 …= slprintf(buffer, sizeof(buffer), "%s%04lld", t->y < 0 ? "-" : "+", php_date_llabs((timelib_sll) … in date_format()
807 (zend_long) t->y, (int) t->m, (int) t->d, in date_format()
815 php_date_short_day_name(t->y, t->m, t->d), in date_format()
817 (zend_long) t->y, (int) t->h, (int) t->i, (int) t->s, in date_format()
938 timelib_isoweek_from_date(t->y, t->m, t->d, &isoweek, &isoyear); in php_idate()
944 case 'N': retval = (int) timelib_iso_day_of_week(t->y, t->m, t->d); break; in php_idate()
945 case 'w': retval = (int) timelib_day_of_week(t->y, t->m, t->d); break; in php_idate()
946 case 'z': retval = (int) timelib_day_of_year(t->y, t->m, t->d); break; in php_idate()
953 case 't': retval = (int) timelib_days_in_month(t->y, t->m); break; in php_idate()
956 case 'L': retval = (int) timelib_is_leap((int) t->y); break; in php_idate()
957 case 'y': retval = (int) (t->y % 100); break; in php_idate()
958 case 'Y': retval = (int) t->y; break; in php_idate()
1193 now->y = yea; in php_mktime()
1236 zend_long m, d, y; in PHP_FUNCTION() local
1241 Z_PARAM_LONG(y) in PHP_FUNCTION()
1244 if (y < 1 || y > 32767 || !timelib_valid_date(y, m, d)) { in PHP_FUNCTION()
1297 ta.tm_year = ts->y - 1900; in php_strftime()
1298 ta.tm_wday = timelib_day_of_week(ts->y, ts->m, ts->d); in php_strftime()
1299 ta.tm_yday = timelib_day_of_year(ts->y, ts->m, ts->d); in php_strftime()
1412 add_assoc_long(return_value, "tm_year", ts->y - 1900); in PHP_FUNCTION()
1413 add_assoc_long(return_value, "tm_wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1414 add_assoc_long(return_value, "tm_yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1422 add_next_index_long(return_value, ts->y- 1900); in PHP_FUNCTION()
1423 add_next_index_long(return_value, timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1424 add_next_index_long(return_value, timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1464 add_assoc_long(return_value, "wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1466 add_assoc_long(return_value, "year", ts->y); in PHP_FUNCTION()
1467 add_assoc_long(return_value, "yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1468 add_assoc_string(return_value, "weekday", php_date_full_day_name(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
2206 PHP_DATE_INTERVAL_ADD_PROPERTY("y", y); in date_interval_object_to_hash()
3135 PHP_DATE_PARSE_DATE_SET_TIME_ELEMENT(year, y); in php_date_do_return_parsed_time()
3178 add_assoc_long(&element, "year", parsed_time->relative.y); in php_date_do_return_parsed_time()
3280 if (tmp_time->y != TIMELIB_UNSET) { in php_date_modify()
3281 dateobj->time->y = tmp_time->y; in php_date_modify()
3311 tmp_time->y == 1970 && tmp_time->m == 1 && tmp_time->d == 1 && in php_date_modify()
3722 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
3728 dateobj->time->y = y; in php_date_date_set()
3738 zend_long y, m, d; in PHP_FUNCTION() local
3740 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Olll", &object, date_ce_date, &y, &m… in PHP_FUNCTION()
3744 php_date_date_set(object, y, m, d, return_value); in PHP_FUNCTION()
3754 zend_long y, m, d; in PHP_METHOD() local
3758 Z_PARAM_LONG(y) in PHP_METHOD()
3764 php_date_date_set(&new_object, y, m, d, return_value); in PHP_METHOD()
3770 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
3776 dateobj->time->y = y; in php_date_isodate_set()
3780 dateobj->time->relative.d = timelib_daynr_from_weeknr(y, w, d); in php_date_isodate_set()
3790 zend_long y, w, d = 1; in PHP_FUNCTION() local
3792 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Oll|l", &object, date_ce_date, &y, &… in PHP_FUNCTION()
3796 php_date_isodate_set(object, y, w, d, return_value); in PHP_FUNCTION()
3806 zend_long y, w, d = 1; in PHP_METHOD() local
3810 Z_PARAM_LONG(y) in PHP_METHOD()
3817 php_date_isodate_set(&new_object, y, w, d, return_value); in PHP_METHOD()
4520 GET_VALUE_FROM_STRUCT(y, "y"); in date_interval_read_property()
4570 SET_VALUE_FROM_STRUCT(y, "y"); in date_interval_write_property()
4720 PHP_DATE_INTERVAL_READ_PROPERTY("y", y, timelib_sll, -1) in php_date_interval_initialize_from_hash()
4957 case 'Y': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->y); break; in date_interval_format()
4958 case 'y': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->y); break; in date_interval_format()