Home
last modified time | relevance | path

Searched refs:relative (Results 1 – 25 of 123) sorted by relevance

12345

/PHP-7.4/ext/date/lib/
H A Dtm2unixtime.c164 time->relative.weekday = 7; in do_adjust_for_weekday()
172 …if ((time->relative.d < 0 && difference < 0) || (time->relative.d >= 0 && difference <= -time->rel… in do_adjust_for_weekday()
250 time->s += time->relative.s; in do_adjust_relative()
251 time->i += time->relative.i; in do_adjust_relative()
252 time->h += time->relative.h; in do_adjust_relative()
254 time->d += time->relative.d; in do_adjust_relative()
332 memset(&(time->relative.special), 0, sizeof(time->relative.special)); in do_adjust_special()
342 time->relative.m = 0; in do_adjust_special_early()
347 time->relative.m = 0; in do_adjust_special_early()
511 …time->have_relative = time->relative.have_weekday_relative = time->relative.have_special_relative … in timelib_update_ts()
[all …]
H A Dinterval.c112 t->relative.y = interval->y * bias; in timelib_add()
113 t->relative.m = interval->m * bias; in timelib_add()
114 t->relative.d = interval->d * bias; in timelib_add()
115 t->relative.h = interval->h * bias; in timelib_add()
116 t->relative.i = interval->i * bias; in timelib_add()
117 t->relative.s = interval->s * bias; in timelib_add()
118 t->relative.us = interval->us * bias; in timelib_add()
148 t->relative.y = 0 - (interval->y * bias); in timelib_sub()
149 t->relative.m = 0 - (interval->m * bias); in timelib_sub()
150 t->relative.d = 0 - (interval->d * bias); in timelib_sub()
[all …]
H A Dtimelib.c316 d->relative.y, d->relative.m, d->relative.d, d->relative.h, d->relative.i, d->relative.s); in timelib_dump_date()
317 if (d->relative.us) { in timelib_dump_date()
318 printf(" 0.%06lld", d->relative.us); in timelib_dump_date()
320 if (d->relative.first_last_day_of != 0) { in timelib_dump_date()
321 switch (d->relative.first_last_day_of) { in timelib_dump_date()
330 if (d->relative.have_weekday_relative) { in timelib_dump_date()
331 printf(" / %d.%d", d->relative.weekday, d->relative.weekday_behavior); in timelib_dump_date()
333 if (d->relative.have_special_relative) { in timelib_dump_date()
334 switch (d->relative.special.type) { in timelib_dump_date()
336 printf(" / %lld weekday", d->relative.special.amount); in timelib_dump_date()
H A Dparse_date.re1068 s->time->relative.d = 1;
1635 s->time->relative.y = 0 - s->time->relative.y;
1636 s->time->relative.m = 0 - s->time->relative.m;
1637 s->time->relative.d = 0 - s->time->relative.d;
1638 s->time->relative.h = 0 - s->time->relative.h;
1639 s->time->relative.i = 0 - s->time->relative.i;
1640 s->time->relative.s = 0 - s->time->relative.s;
1641 s->time->relative.weekday = 0 - s->time->relative.weekday;
1646 s->time->relative.special.amount = 0 - s->time->relative.special.amount;
1789 relative
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Darray_splice_variation3.phpt64 echo "relative offset - relative length - cut from beginning\n";
67 echo "relative offset - relative length - cut from middle\n";
70 echo "relative offset - relative length - cut nothing\n";
363 absolute offset - relative length - cut from middle
445 absolute offset - relative length - cut nothing
568 relative offset - absolute length - cut from end
650 relative offset - absolute length - cut everything
691 relative offset - absolute length - cut nothing
732 relative offset - relative length - cut from beginning
773 relative offset - relative length - cut from middle
[all …]
/PHP-7.4/ext/standard/tests/file/windows_acls/
H A Dbug44859_4.phpt23 echo "Testing file with relative path:\n";
39 echo "Testing directory with relative path:\n";
57 Testing file with relative path:
62 Testing directory with relative path:
/PHP-7.4/ext/standard/tests/file/
H A Dglob_variation2.phpt2 Test glob() function with relative path
21 echo "Testing glob() with relative paths:\n";
40 Testing glob() with relative paths:
H A Dunlink_variation6.phpt13 echo "*** Testing unlink() : variation: contexts and relative files ***\n";
15 // test relative directories and stream contexts.
37 *** Testing unlink() : variation: contexts and relative files ***
H A Drename_variation12-win32.phpt2 Test rename() function : variation - various relative, absolute paths
17 /* Creating unique files in various dirs by passing relative paths to $dir arg */
19 echo "*** Testing rename() with absolute and relative paths ***\n";
43 // relative paths
72 *** Testing rename() with absolute and relative paths ***
H A Drename_variation12.phpt2 Test rename() function : variation - various relative, absolute paths
17 /* Creating unique files in various dirs by passing relative paths to $dir arg */
19 echo "*** Testing rename() with absolute and relative paths ***\n";
43 // relative paths
72 *** Testing rename() with absolute and relative paths ***
H A Dfopen_variation6.phpt2 Test fopen() function : variation: use include path and stream context relative/absolute file
22 fwrite($h, "This is a relative file");
43 This is a relative file
H A Dsymlink_to_symlink.phpt2 symlink() using a relative path, and symlink() to a symlink
15 // symlink to a regular file using a relative dest
18 // symlink to a symlink using a relative path
H A Drename_variation11-win32.phpt2 Test rename() function : variation - various relative, absolute paths
18 echo "*** Testing rename() with absolute and relative paths ***\n";
43 // relative paths
75 *** Testing rename() with absolute and relative paths ***
H A Dtempnam_variation8-win32.phpt2 Test tempnam() function: usage variations - various absolute and relative paths
16 /* Creating unique files in various dirs by passing relative paths to $dir arg */
18 echo "*** Testing tempnam() with absolute and relative paths ***\n";
37 // relative paths
90 *** Testing tempnam() with absolute and relative paths ***
H A Drealpath_basic2.phpt2 realpath() with relative directory
/PHP-7.4/ext/date/tests/
H A Dbug50055.phpt2 Bug #50555 (DateTime::sub() allows 'relative' time modifications).
26 Warning: date_sub(): Only non-special relative time specifications are supported for subtraction in…
30 Warning: date_sub(): Only non-special relative time specifications are supported for subtraction in…
H A Dbug35630.phpt2 Bug #35630 (strtotime() crashes on non-separated relative modifiers)
/PHP-7.4/ext/standard/tests/dir/
H A Dchdir_basic.phpt11 * Test basic functionality of chdir() with absolute and relative paths
32 echo "\n-- Testing chdir() with relative paths: --\n";
50 -- Testing chdir() with relative paths: --
H A Dchdir_basic-win32-mb.phpt17 * Test basic functionality of chdir() with absolute and relative paths
39 echo "\n-- Testing chdir() with relative paths: --\n";
59 -- Testing chdir() with relative paths: --
H A Dopendir_basic.phpt11 * Test basic functionality of opendir() with absolute and relative paths as $path argument
33 echo "\n-- Testing opendir() with relative paths: --\n";
57 -- Testing opendir() with relative paths: --
H A Dopendir_basic-win32-mb.phpt17 * Test basic functionality of opendir() with absolute and relative paths as $path argument
39 echo "\n-- Testing opendir() with relative paths: --\n";
63 -- Testing opendir() with relative paths: --
/PHP-7.4/ext/zlib/tests/
H A Dgzopen_variation6.phpt2 Test gzopen() function : variation: relative/absolute file
26 gzwrite($h, "This is a relative file");
46 This is a relative file
/PHP-7.4/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation4.phpt2 stream_get_meta_data() with a relative file path
14 echo "\nChange to file's directory and open with a relative path:\n";
51 Change to file's directory and open with a relative path:
/PHP-7.4/ext/opcache/tests/
H A Dopcache-2.blacklist2 ; wildcard and relative entries
/PHP-7.4/ext/standard/tests/url/
H A Dparse_url_relative_scheme.phpt2 Test parse_url() function: Checks relative URL schemes (e.g. "//example.com")

Completed in 36 milliseconds

12345