Home
last modified time | relevance | path

Searched refs:time (Results 51 – 75 of 568) sorted by relevance

12345678910>>...23

/PHP-7.4/ext/intl/tests/
H A Dcalendar_getNow_basic.phpt14 $time = time();
16 var_dump(abs($time * 1000 - $proc_now) < 2000);
H A Dcalendar_createInstance_basic.phpt22 $time = time();
24 var_dump(abs($timeMillis - $time * 1000) < 2000);
/PHP-7.4/Zend/tests/
H A Dbug54043.phpt6 $time = '9999-11-33'; // obviously invalid ;-)
10 $dateTime = new DateTime($time, $timeZone);
19 string(105) "DateTime::__construct(): Failed to parse time string (9999-11-33) at position 9 (3): U…
H A Dconcat_003.phpt11 $time = microtime(TRUE);
27 $time = microtime(TRUE);
34 $t = microtime(TRUE) - $time;
/PHP-7.4/ext/sqlite3/tests/
H A Dsqlite3_39_toggleExtended.phpt12 echo "Inserting first time which should succeed" . PHP_EOL;
16 echo "Inserting second time which should fail" . PHP_EOL;
20 echo "Toggling extended error codes and re-inserting a third time" . PHP_EOL;
30 Inserting first time which should succeed
32 Inserting second time which should fail
36 Toggling extended error codes and re-inserting a third time
H A Dsqlite3_13_skip_all_cleanup.phpt9 define('TIMENOW', time());
12 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
15 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')"));
16 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')"));
H A Dsqlite3_18_changes.phpt9 define('TIMENOW', time());
12 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
15 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')"));
16 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')"));
H A Dsqlite3_03_insert.phpt9 define('TIMENOW', time());
12 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
15 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')"));
16 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')"));
H A Dsqlite3_23_escape_string.phpt9 define('TIMENOW', time());
12 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
15 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", '" . SQLite3::escapeString…
16 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')"));
/PHP-7.4/ext/date/tests/
H A DDateTime_construct_error.phpt5 /* Prototype : DateTime::__construct ([ string $time="now" [, DateTimeZone $timezone=NULL ]] )
10 //Set the default time zone
16 $time = "GMT";
20 var_dump( new DateTime($time, $timezone, $extra_arg) );
H A Ddate_sunset_variation7.phpt5 /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, …
6 * Description: Returns time of sunrise for a given day and location
30 $time = mktime(8, 8, 8, 8, 11, 2008);
31 …var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $value["Latitude"], $value["Longitude"], 90, $va…
32 $time = mktime(8, 8, 8, 8, 12, 2008);
33 …var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $value["Latitude"], $value["Longitude"], 90, $va…
H A Dbug67118_2.phpt8 public function __construct($time = null) {
12 parent::__construct($time, $tz);
16 parent::__construct($time.'C', $tz);
H A Dgetdate_variation4.phpt2 …nction : usage variation - Verifyig by supplying year-wise sample time stamps since Unix epoch time
6 * Description: Get date/time information
13 //Set the default time zone
19 //Year wise time stamps
/PHP-7.4/ext/standard/tests/general_functions/
H A Dgetrusage_basic.phpt22 echo "User time used (seconds) " . $dat["ru_utime.tv_sec"] . "\n";
23 echo "User time used (microseconds) " . $dat["ru_utime.tv_usec"] . "\n";
28 User time used (seconds) %d
29 User time used (microseconds) %d
H A Dusleep_basic.phpt19 // Test passes if sleeps for at least 98% of specified time
28 $time = ($time_end - $time_start) * 1000 * 1000;
30 $summary = "Thread slept for " . $time . " micro-seconds\n";
32 if ($time >= $sleeplow) {
/PHP-7.4/ext/pdo_sqlite/tests/
H A Dpdo_sqlite_extendederror_attr.phpt13 echo "Inserting first time which should succeed" . PHP_EOL;
18 echo "Inserting second time which should fail" . PHP_EOL;
29 echo "Inserting first time which should succeed" . PHP_EOL;
34 echo "Inserting second time which should fail" . PHP_EOL;
42 Inserting first time which should succeed
44 Inserting second time which should fail
47 Inserting first time which should succeed
49 Inserting second time which should fail
/PHP-7.4/Zend/tests/type_declarations/variance/
H A Dinternal_parent.phpt7 public static function createFromFormat($format, $time, Wrong $timezone = null) { }
12 …ween Test::createFromFormat($format, $time, ?Wrong $timezone = NULL) and DateTime::createFromForma…
/PHP-7.4/ext/standard/tests/misc/
H A Dtime_sleep_until_error1.phpt11 var_dump(time_sleep_until(time()-1));
14 Warning: time_sleep_until(): Sleep until to time is less than current time in %s on line 2
/PHP-7.4/ext/soap/tests/bugs/
H A Dbug42326.phpt11 …:ns1="http://www.example.com/"><SOAP-ENV:Body><ns1:GetProductsRequest><time></time></ns1:GetProduc…
24 public $time = '';
36 public function GetProducts($time){
/PHP-7.4/ext/standard/tests/
H A Dbug64370_var1.phpt7 echo "time(): " . time() . "\n";
17 time(): %d
/PHP-7.4/ext/standard/tests/file/
H A D005_basic.phpt7 Description: Returns the time the file was last accessed, or FALSE
8 in case of an error. The time is returned as a Unix timestamp.
11 Description: Returns the time the file was last modified, or FALSE
15 Description: Returns the time the file was last changed, or FALSE
16 in case of an error. The time is returned as a Unix timestamp.
18 Prototype: bool touch ( string $filename [, int $time [, int $atime]] );
20 named in the filename parameter to the value given in time.
/PHP-7.4/ext/date/
H A Dphp_date.c75 return time(NULL); in php_time()
2246 *new_obj->time = *old_obj->time; in date_object_clone_date()
2251 new_obj->time->tz_info = old_obj->time->tz_info; in date_object_clone_date()
2267 if (!o1->time || !o2->time) { in date_object_compare_date()
2272 timelib_update_ts(o1->time, o1->time->tz_info); in date_object_compare_date()
2275 timelib_update_ts(o2->time, o2->time->tz_info); in date_object_compare_date()
2278 return timelib_time_compare(o1->time, o2->time); in date_object_compare_date()
2940 new_obj->time = timelib_time_clone(old_obj->time); in PHP_METHOD()
2961 new_obj->time = timelib_time_clone(old_obj->time); in PHP_METHOD()
3527 timelib_unixtime2local(dateobj->time, dateobj->time->sse); in php_date_timezone_set()
[all …]
/PHP-7.4/ext/standard/tests/dir/
H A Dopendir_variation3.phpt19 echo "\n-- Open directory first time: --\n";
22 echo "\n-- Open directory second time: --\n";
43 -- Open directory first time: --
46 -- Open directory second time: --
/PHP-7.4/ext/standard/tests/network/
H A Dbug76755.phpt2 Bug #76755 (setcookie does not accept "double" type for expire time)
5 var_dump(setcookie('name', 'value', (float)(time() + 1296000)));
/PHP-7.4/ext/ffi/tests/
H A Dbug77706.phpt25 time_t time(time_t*);
33 $ffi->time();
39 $ffi->time(null, null);
57 FFI\Exception: Incorrect number of arguments for C function 'time', expecting exactly 1 parameter
58 FFI\Exception: Incorrect number of arguments for C function 'time', expecting exactly 1 parameter

Completed in 48 milliseconds

12345678910>>...23