Lines Matching refs:parsed_time
1034 timelib_time *parsed_time; in php_parse_date() local
1039 …parsed_time = timelib_strtotime(string, strlen(string), &error, DATE_TIMEZONEDB, php_date_parse_tz… in php_parse_date()
1041 timelib_time_dtor(parsed_time); in php_parse_date()
1046 timelib_update_ts(parsed_time, NULL); in php_parse_date()
1047 retval = timelib_date_to_int(parsed_time, &error2); in php_parse_date()
1048 timelib_time_dtor(parsed_time); in php_parse_date()
2974 void php_date_do_return_parsed_time(INTERNAL_FUNCTION_PARAMETERS, timelib_time *parsed_time, timeli… in php_date_do_return_parsed_time() argument
2980 if (parsed_time->elem == TIMELIB_UNSET) { \ in php_date_do_return_parsed_time()
2983 add_assoc_long(return_value, #name, parsed_time->elem); \ in php_date_do_return_parsed_time()
2992 if (parsed_time->us == TIMELIB_UNSET) { in php_date_do_return_parsed_time()
2995 add_assoc_double(return_value, "fraction", (double)parsed_time->us / 1000000.0); in php_date_do_return_parsed_time()
3002 add_assoc_bool(return_value, "is_localtime", parsed_time->is_localtime); in php_date_do_return_parsed_time()
3004 if (parsed_time->is_localtime) { in php_date_do_return_parsed_time()
3006 switch (parsed_time->zone_type) { in php_date_do_return_parsed_time()
3009 add_assoc_bool(return_value, "is_dst", parsed_time->dst); in php_date_do_return_parsed_time()
3012 if (parsed_time->tz_abbr) { in php_date_do_return_parsed_time()
3013 add_assoc_string(return_value, "tz_abbr", parsed_time->tz_abbr); in php_date_do_return_parsed_time()
3015 if (parsed_time->tz_info) { in php_date_do_return_parsed_time()
3016 add_assoc_string(return_value, "tz_id", parsed_time->tz_info->name); in php_date_do_return_parsed_time()
3021 add_assoc_bool(return_value, "is_dst", parsed_time->dst); in php_date_do_return_parsed_time()
3022 add_assoc_string(return_value, "tz_abbr", parsed_time->tz_abbr); in php_date_do_return_parsed_time()
3026 if (parsed_time->have_relative) { in php_date_do_return_parsed_time()
3028 add_assoc_long(&element, "year", parsed_time->relative.y); in php_date_do_return_parsed_time()
3029 add_assoc_long(&element, "month", parsed_time->relative.m); in php_date_do_return_parsed_time()
3030 add_assoc_long(&element, "day", parsed_time->relative.d); in php_date_do_return_parsed_time()
3031 add_assoc_long(&element, "hour", parsed_time->relative.h); in php_date_do_return_parsed_time()
3032 add_assoc_long(&element, "minute", parsed_time->relative.i); in php_date_do_return_parsed_time()
3033 add_assoc_long(&element, "second", parsed_time->relative.s); in php_date_do_return_parsed_time()
3034 if (parsed_time->relative.have_weekday_relative) { in php_date_do_return_parsed_time()
3035 add_assoc_long(&element, "weekday", parsed_time->relative.weekday); in php_date_do_return_parsed_time()
3037 …if (parsed_time->relative.have_special_relative && (parsed_time->relative.special.type == TIMELIB_… in php_date_do_return_parsed_time()
3038 add_assoc_long(&element, "weekdays", parsed_time->relative.special.amount); in php_date_do_return_parsed_time()
3040 if (parsed_time->relative.first_last_day_of) { in php_date_do_return_parsed_time()
3041 …add_assoc_bool(&element, parsed_time->relative.first_last_day_of == TIMELIB_SPECIAL_FIRST_DAY_OF_M… in php_date_do_return_parsed_time()
3045 timelib_time_dtor(parsed_time); in php_date_do_return_parsed_time()
3053 timelib_time *parsed_time; in PHP_FUNCTION() local
3059 …parsed_time = timelib_strtotime(ZSTR_VAL(date), ZSTR_LEN(date), &error, DATE_TIMEZONEDB, php_date_… in PHP_FUNCTION()
3060 php_date_do_return_parsed_time(INTERNAL_FUNCTION_PARAM_PASSTHRU, parsed_time, error); in PHP_FUNCTION()
3069 timelib_time *parsed_time; in PHP_FUNCTION() local
3076 …parsed_time = timelib_parse_from_format(ZSTR_VAL(format), ZSTR_VAL(date), ZSTR_LEN(date), &error, … in PHP_FUNCTION()
3077 php_date_do_return_parsed_time(INTERNAL_FUNCTION_PARAM_PASSTHRU, parsed_time, error); in PHP_FUNCTION()