Home
last modified time | relevance | path

Searched refs:weekday (Results 1 – 22 of 22) sorted by relevance

/PHP-8.2/ext/date/tests/
H A DDateInterval_serialize-003.phpt7 $d = DateInterval::createFromDateString('next weekday');
27 'date_string' => 'next weekday',
43 string(%d) "next weekday"
48 string(%d) "O:12:"DateInterval":2:{s:11:"from_string";b:1;s:11:"date_string";s:%d:"next weekday";}"
56 string(%d) "next weekday"
65 string(%d) "next weekday"
74 string(%d) "next weekday"
H A Dgetdate_variation5.phpt53 ["weekday"]=>
79 ["weekday"]=>
105 ["weekday"]=>
131 ["weekday"]=>
157 ["weekday"]=>
183 ["weekday"]=>
209 ["weekday"]=>
H A Dgetdate_variation4.phpt49 ["weekday"]=>
75 ["weekday"]=>
101 ["weekday"]=>
127 ["weekday"]=>
H A Dgmstrftime_variation3.phpt12 'Abbreviated weekday name' => "%a",
13 'Full weekday name' => "%A",
30 --Abbreviated weekday name--
38 --Full weekday name--
H A Dstrftime_variation3.phpt13 'Abbreviated weekday name' => "%a",
14 'Full weekday name' => "%A",
30 --Abbreviated weekday name--
38 --Full weekday name--
H A Dbug43452.phpt2 Bug #43452 ("weekday" is not equivalent to "1 weekday" of the current weekday is "weekday")
27 // First, second, etc skip to the first/second weekday *after* the current day.
H A Dgetdate_variation2.phpt48 ["weekday"]=>
74 ["weekday"]=>
100 ["weekday"]=>
H A Dgetdate_variation3.phpt48 ["weekday"]=>
74 ["weekday"]=>
100 ["weekday"]=>
H A Ddate_interval_non_relative_warning.phpt6 'next weekday 15:30',
22 Warning: DateInterval::createFromDateString(): String 'next weekday 15:30' contains non-relative el…
30 Warning: date_interval_create_from_date_string(): String 'next weekday 15:30' contains non-relative…
H A D008.phpt32 ["weekday"]=>
56 ["weekday"]=>
H A Dgetdate_basic.phpt39 ["weekday"]=>
63 ["weekday"]=>
H A Dbug72719.phpt2 Bug #72719: Relative datetime format ignores weekday on sundays only
H A Ddate_time_fractions.phpt31 echo $dt->modify( "10 weekday" )->format( "Y-m-d H:i:s.u" ), "\n";
/PHP-8.2/ext/date/lib/
H A Ddow.c95 int y_leap, prev_y_leap, doy, jan1weekday, weekday; in timelib_isoweek_from_date() local
104 weekday = timelib_day_of_week(y, m, d); in timelib_isoweek_from_date()
105 if (weekday == 0) weekday = 7; in timelib_isoweek_from_date()
123 if ((i - (doy - y_leap)) < (4 - weekday)) { in timelib_isoweek_from_date()
133 j = doy + (7 - weekday) + (jan1weekday - 1); in timelib_isoweek_from_date()
H A Dtm2unixtime.c162 if (current_dow == 0 && time->relative.weekday != 0) { in do_adjust_for_weekday()
163 time->relative.weekday -= 7; in do_adjust_for_weekday()
168 if (time->relative.weekday == 0 && current_dow != 0) { in do_adjust_for_weekday()
169 time->relative.weekday = 7; in do_adjust_for_weekday()
173 time->d += time->relative.weekday; in do_adjust_for_weekday()
176 difference = time->relative.weekday - current_dow; in do_adjust_for_weekday()
180 if (time->relative.weekday >= 0) { in do_adjust_for_weekday()
183 time->d -= (7 - (abs(time->relative.weekday) - current_dow)); in do_adjust_for_weekday()
504 printf (" / %d", time.relative.weekday);
H A Dparse_date.re237 { "weekday", TIMELIB_SPECIAL, TIMELIB_SPECIAL_WEEKDAY },
733 * for not overwriting the time portion for 'X weekday'.
758 s->time->relative.weekday = relunit->multiplier;
1059 dayspecial = 'weekday' | 'weekdays';
1808 s->time->relative.weekday = 0 - s->time->relative.weekday;
1809 if (s->time->relative.weekday == 0) {
1810 s->time->relative.weekday = -7;
1828 s->time->relative.weekday = relunit->multiplier;
1854 s->time->relative.weekday = 1;
2272 in.time->relative.weekday = tmprel->multiplier;
[all …]
H A Dtimelib.c356 printf(" / %d.%d", d->relative.weekday, d->relative.weekday_behavior); in timelib_dump_date()
H A Dtimelib.h228 int weekday; /* Stores the day in 'next monday' */ member
H A Dparse_iso_intervals.re405 in.period->weekday = 0;
H A Dparse_iso_intervals.c1047 in.period->weekday = 0; in timelib_strtointerval()
H A Dparse_date.c760 s->time->relative.weekday = relunit->multiplier; in timelib_set_relative()
7853 s->time->relative.weekday = 0 - s->time->relative.weekday; in scan()
7854 if (s->time->relative.weekday == 0) { in scan()
7855 s->time->relative.weekday = -7; in scan()
8495 s->time->relative.weekday = relunit->multiplier; in scan()
22499 s->time->relative.weekday = 1; in scan()
25122 in.time->relative.weekday = tmprel->multiplier; in timelib_parse_from_format_with_map()
25603 printf (" / %d", time.relative.weekday); in main()
/PHP-8.2/ext/date/
H A Dphp_date.c3035 add_assoc_long(&element, "weekday", parsed_time->relative.weekday); in php_date_do_return_parsed_time()
4430 PHP_DATE_INTERVAL_READ_PROPERTY("weekday", weekday, int, -1) in php_date_interval_initialize_from_hash()

Completed in 103 milliseconds