Home
last modified time | relevance | path

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

123456

/PHP-7.2/ext/date/lib/
H A Dtm2unixtime.c176 time->relative.weekday = 7; in do_adjust_for_weekday()
184 …if ((time->relative.d < 0 && difference < 0) || (time->relative.d >= 0 && difference <= -time->rel… in do_adjust_for_weekday()
262 time->s += time->relative.s; in do_adjust_relative()
263 time->i += time->relative.i; in do_adjust_relative()
264 time->h += time->relative.h; in do_adjust_relative()
266 time->d += time->relative.d; in do_adjust_relative()
344 memset(&(time->relative.special), 0, sizeof(time->relative.special)); in do_adjust_special()
354 time->relative.m = 0; in do_adjust_special_early()
359 time->relative.m = 0; in do_adjust_special_early()
515 …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.re1035 s->time->relative.d = 1;
1602 s->time->relative.y = 0 - s->time->relative.y;
1603 s->time->relative.m = 0 - s->time->relative.m;
1604 s->time->relative.d = 0 - s->time->relative.d;
1605 s->time->relative.h = 0 - s->time->relative.h;
1606 s->time->relative.i = 0 - s->time->relative.i;
1607 s->time->relative.s = 0 - s->time->relative.s;
1608 s->time->relative.weekday = 0 - s->time->relative.weekday;
1613 s->time->relative.special.amount = 0 - s->time->relative.special.amount;
1756 relative
[all …]
/PHP-7.2/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.2/ext/standard/tests/file/windows_acls/
H A Dbug44859_4.phpt22 echo "Testing file with relative path:\n";
38 echo "Testing directory with relative path:\n";
56 Testing file with relative path:
61 Testing directory with relative path:
/PHP-7.2/ext/standard/tests/file/
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 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 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 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 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
H A Dtempnam_variation2-win32.phpt2 Test tempnam() function: usage variations - various absolute and relative paths
14 /* Creating unique files in various dirs by passing relative paths to $dir arg */
16 echo "*** Testing tempnam() with absolute and relative paths ***\n";
36 // relative paths
91 *** Testing tempnam() with absolute and relative paths ***
H A Dtempnam_variation2.phpt2 Test tempnam() function: usage variations - various absolute and relative paths
14 /* Creating unique files in various dirs by passing relative paths to $dir arg */
16 echo "*** Testing tempnam() with absolute and relative paths ***\n";
36 // relative paths
91 *** Testing tempnam() with absolute and relative paths ***
/PHP-7.2/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…
/PHP-7.2/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.2/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
38 echo "\n-- Testing chdir() with relative paths: --\n";
57 -- Testing chdir() with relative paths: --
H A Dopendir_basic-win32-mb.phpt17 * Test basic functionality of opendir() with absolute and relative paths as $path argument
38 echo "\n-- Testing opendir() with relative paths: --\n";
61 -- Testing opendir() with relative paths: --
H A Dopendir_basic.phpt11 * Test basic functionality of opendir() with absolute and relative paths as $path argument
32 echo "\n-- Testing opendir() with relative paths: --\n";
55 -- Testing opendir() with relative paths: --
/PHP-7.2/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.2/ext/opcache/tests/
H A Dopcache-2.blacklist2 ; wildcard and relative entries

Completed in 35 milliseconds

123456