Home
last modified time | relevance | path

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

123456

/php-src/ext/date/lib/
H A Dtm2unixtime.c169 time->relative.weekday = 7; in do_adjust_for_weekday()
177 …if ((time->relative.d < 0 && difference < 0) || (time->relative.d >= 0 && difference <= -time->rel… in do_adjust_for_weekday()
253 time->s += time->relative.s; in do_adjust_relative()
254 time->i += time->relative.i; in do_adjust_relative()
255 time->h += time->relative.h; in do_adjust_relative()
257 time->d += time->relative.d; in do_adjust_relative()
335 memset(&(time->relative.special), 0, sizeof(time->relative.special)); in do_adjust_special()
345 time->relative.m = 0; in do_adjust_special_early()
350 time->relative.m = 0; in do_adjust_special_early()
487 …time->have_relative = time->relative.have_weekday_relative = time->relative.have_special_relative … in timelib_update_ts()
[all …]
H A Dinterval.c223 t->relative.y = interval->y * bias; in timelib_add()
224 t->relative.m = interval->m * bias; in timelib_add()
225 t->relative.d = interval->d * bias; in timelib_add()
226 t->relative.h = interval->h * bias; in timelib_add()
227 t->relative.i = interval->i * bias; in timelib_add()
228 t->relative.s = interval->s * bias; in timelib_add()
303 t->relative.y = interval->y * bias; in timelib_add_wall()
304 t->relative.m = interval->m * bias; in timelib_add_wall()
305 t->relative.d = interval->d * bias; in timelib_add_wall()
307 if (t->relative.y || t->relative.m || t->relative.d) { in timelib_add_wall()
[all …]
H A Dtimelib.c341 d->relative.y, d->relative.m, d->relative.d, d->relative.h, d->relative.i, d->relative.s); in timelib_dump_date()
342 if (d->relative.us) { in timelib_dump_date()
343 printf(" 0.%06lld", d->relative.us); in timelib_dump_date()
345 if (d->relative.first_last_day_of != 0) { in timelib_dump_date()
346 switch (d->relative.first_last_day_of) { in timelib_dump_date()
355 if (d->relative.have_weekday_relative) { in timelib_dump_date()
356 printf(" / %d.%d", d->relative.weekday, d->relative.weekday_behavior); in timelib_dump_date()
358 if (d->relative.have_special_relative) { in timelib_dump_date()
359 switch (d->relative.special.type) { in timelib_dump_date()
361 printf(" / %lld weekday", d->relative.special.amount); in timelib_dump_date()
H A Dparse_date.re1201 s->time->relative.d = 1;
1798 s->time->relative.y = 0 - s->time->relative.y;
1799 s->time->relative.m = 0 - s->time->relative.m;
1800 s->time->relative.d = 0 - s->time->relative.d;
1801 s->time->relative.h = 0 - s->time->relative.h;
1802 s->time->relative.i = 0 - s->time->relative.i;
1803 s->time->relative.s = 0 - s->time->relative.s;
1804 s->time->relative.weekday = 0 - s->time->relative.weekday;
1809 s->time->relative.special.amount = 0 - s->time->relative.special.amount;
1953 relative
[all …]
/php-src/ext/date/tests/
H A Ddate_interval_non_relative_warning.phpt2 GH-8458 (DateInterval::createFromDateString does not warn when non-relative items are present)
28 DateMalformedIntervalStringException: String 'next weekday 15:30' contains non-relative elements
29 DateMalformedIntervalStringException: String '+5 hours noon' contains non-relative elements
30 DateMalformedIntervalStringException: String '-8 days March 23' contains non-relative elements
31 DateMalformedIntervalStringException: String '+72 seconds UTC' contains non-relative elements
34 Warning: date_interval_create_from_date_string(): String 'next weekday 15:30' contains non-relative
36 Warning: date_interval_create_from_date_string(): String '+5 hours noon' contains non-relative elem…
38 Warning: date_interval_create_from_date_string(): String '-8 days March 23' contains non-relative e…
40 Warning: date_interval_create_from_date_string(): String '+72 seconds UTC' contains non-relative el…
H A Dbug50055-001.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 Dbug50055-002.phpt2 Bug #50555 (DateTime::sub() allows 'relative' time modifications) (OO).
33 DateInvalidOperationException: DateTime::sub(): Only non-special relative time specifications are s…
36 DateInvalidOperationException: DateTime::sub(): Only non-special relative time specifications are s…
/php-src/ext/standard/tests/array/
H A Darray_splice_variation3.phpt63 echo "relative offset - relative length - cut from beginning\n";
66 echo "relative offset - relative length - cut from middle\n";
69 echo "relative offset - relative length - cut nothing\n";
362 absolute offset - relative length - cut from middle
444 absolute offset - relative length - cut nothing
567 relative offset - absolute length - cut from end
649 relative offset - absolute length - cut everything
690 relative offset - absolute length - cut nothing
731 relative offset - relative length - cut from beginning
772 relative offset - relative length - cut from middle
[all …]
/php-src/ext/zlib/tests/
H A Dgzopen_variation6.phpt2 Test gzopen() function : variation: relative/absolute file
16 gzwrite($h, "This is a relative file");
35 This is a relative file
/php-src/ext/standard/tests/file/
H A Dunlink_variation6.phpt7 echo "*** Testing unlink() : variation: contexts and relative files ***\n";
9 // test relative directories and stream contexts.
30 *** Testing unlink() : variation: contexts and relative files ***
H A Dglob_variation2.phpt2 Test glob() function with relative path
17 echo "Testing glob() with relative paths:\n";
36 Testing glob() with relative paths:
H A Dfopen_variation6.phpt2 Test fopen() function : variation: use include path and stream context relative/absolute file
16 fwrite($h, "This is a relative file");
36 This is a relative file
H A Drename_variation12.phpt2 Test rename() function : variation - various relative, absolute paths
11 /* Creating unique files in various dirs by passing relative paths to $dir arg */
13 echo "*** Testing rename() with absolute and relative paths ***\n";
37 // relative paths
66 *** Testing rename() with absolute and relative paths ***
H A Drename_variation12-win32.phpt2 Test rename() function : variation - various relative, absolute paths
11 /* Creating unique files in various dirs by passing relative paths to $dir arg */
13 echo "*** Testing rename() with absolute and relative paths ***\n";
37 // relative paths
66 *** 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
12 echo "*** Testing rename() with absolute and relative paths ***\n";
37 // relative paths
69 *** Testing rename() with absolute and relative paths ***
H A Dtempnam_variation8-win32.phpt2 Test tempnam() function: usage variations - various absolute and relative paths
12 /* Creating unique files in various dirs by passing relative paths to $dir arg */
14 echo "*** Testing tempnam() with absolute and relative paths ***\n";
33 // relative paths
86 *** Testing tempnam() with absolute and relative paths ***
/php-src/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-src/Zend/tests/
H A Dnamespace_name_namespace_start.phpt2 Cannot use "namespace\xyz" as namespace name, due to conflict with ns-relative names
10 Parse error: syntax error, unexpected namespace-relative name "NAMEspace\xyz", expecting "{" in %s …
/php-src/ext/standard/tests/dir/
H A Dchdir_basic.phpt6 * Test basic functionality of chdir() with absolute and relative paths
27 echo "\n-- Testing chdir() with relative paths: --\n";
44 -- Testing chdir() with relative paths: --
H A Dchdir_basic-win32-mb.phpt12 * Test basic functionality of chdir() with absolute and relative paths
34 echo "\n-- Testing chdir() with relative paths: --\n";
53 -- Testing chdir() with relative paths: --
H A Dopendir_basic.phpt6 * Test basic functionality of opendir() with absolute and relative paths as $path argument
28 echo "\n-- Testing opendir() with relative paths: --\n";
51 -- Testing opendir() with relative paths: --
H A Dopendir_basic-win32-mb.phpt12 * Test basic functionality of opendir() with absolute and relative paths as $path argument
34 echo "\n-- Testing opendir() with relative paths: --\n";
57 -- Testing opendir() with relative paths: --
H A Dopendir_error2.phpt21 echo "\n-- Pass a non-existent relative path: --\n";
33 -- Pass a non-existent relative path: --
/php-src/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:

Completed in 32 milliseconds

123456