Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 200) sorted by relevance

12345678

/php-src/ext/date/tests/
H A Dbug46268.phpt7 $now = new DateTime('2008-10-10 01:02:03');
8 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
10 $now->modify("1 day");
11 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
13 $now->modify("1 hour");
14 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
16 $now->setTime(0, 0, 0);
17 //date_time_set($now, 0, 0, 0);
18 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
H A Dbug-gh11416.phpt7 $now = new DateTimeImmutable();
19 new DatePeriod($now, new DateInterval('P1D'), $date);
34 $dateperiod->__unserialize(['start' => $now, 'end' => $date]);
40 $dateperiod->__unserialize(['start' => $now, 'end' => $now, 'current' => $date]);
46 …$dateperiod->__unserialize(['start' => $now, 'end' => $now, 'current' => $now, 'interval' => $date…
53 'start' => $now, 'end' => $now, 'current' => $now, 'interval' => $simpleInterval,
H A Dbug77097.phpt5 $now = new DateTime('2018-11-03 11:34:20.781751');
8 $diff = $now->diff($ago);
11 $diff = $ago->diff($now);
14 $diff = $now->diff($ago, true);
17 $diff = $ago->diff($now, true);
H A Dbug50055-001.phpt5 $now = '2010-03-07 13:21:38 UTC';
7 $da1 = date_create( $now );
8 $ds1 = date_create( $now );
15 $da2 = date_create( $now );
16 $ds2 = date_create( $now );
H A Dbug50055-002.phpt5 $now = '2010-03-07 13:21:38 UTC';
7 $da1 = date_create( $now );
8 $ds1 = date_create( $now );
19 $da2 = date_create( $now );
20 $ds2 = date_create( $now );
H A Dbug75857.phpt7 $longDate = new DateTime('now', new DateTimeZone('America/Argentina/ComodRivadavia'));
8 $mediumDate = new DateTime('now', new DateTimeZone('America/Indiana/Indianapolis'));
9 $smallDate = new DateTime('now', new DateTimeZone('America/Sao_Paulo'));
H A Dbug80057.phpt5 $now = new DateTimeImmutable;
7 $nowStr = $now->format("H:i");
H A Dgh9699.phpt7 $now = new DateTimeImmutable('2022-10-10 08:41:54.534620', new DateTimeZone('UTC'));
9 echo $date->diff($now)->format("%R %Y %M %D %H %I %S %F"), "\n";
H A Dbug66545.phpt11 $d1 = new DateTime('now',new DateTimeZone('Europe/Paris'));
12 $d2 = new DateTime('now',new DateTimeZone('Europe/Paris'));
H A Dbug73858.phpt18 $s = (new DateTime("now"))->setTimestamp(strtotime($ss)); // verbose setup method
19 $e = (new DateTime("now"))->setTimestamp(strtotime($es)); // verbose setup method
27 $s = (new DateTime("now"))->setTimestamp(strtotime($ss)); // verbose setup method
33 $e = (new DateTime("now"))->setTimestamp(strtotime($es)); // verbose setup method
42 $e = (new DateTime("now"))->setTimestamp(strtotime($es)); // verbose setup method
/php-src/ext/standard/tests/serialize/
H A Dbug78438.phpt84 > Serializing now
85 > Unserializing now
89 > Serializing now
90 > Unserializing now
94 > Serializing now
95 > Unserializing now
99 > Serializing now
104 > Serializing now
109 > Serializing now
114 > Serializing now
[all …]
/php-src/sapi/fpm/fpm/
H A Dfpm_request.c40 struct timeval now; in fpm_request_accepting() local
42 fpm_clock_get(&now); in fpm_request_accepting()
53 proc->tv = now; in fpm_request_accepting()
64 struct timeval now; in fpm_request_reading_headers() local
70 fpm_clock_get(&now); in fpm_request_reading_headers()
85 proc->tv = now; in fpm_request_reading_headers()
113 struct timeval now; in fpm_request_info() local
124 proc->tv = now; in fpm_request_info()
167 proc->tv = now; in fpm_request_executing()
191 proc->tv = now; in fpm_request_end()
[all …]
H A Dfpm_events.c33 #define fpm_event_set_timeout(ev, now) timeradd(&(now), &(ev)->frequency, &(ev)->timeout); argument
385 struct timeval now; in fpm_event_loop() local
394 fpm_clock_get(&now); in fpm_event_loop()
411 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop()
414 timersub(&ms, &now, &tmp); in fpm_event_loop()
433 fpm_clock_get(&now); in fpm_event_loop()
435 if (timercmp(&now, &q->ev->timeout, >) || timercmp(&now, &q->ev->timeout, ==)) { in fpm_event_loop()
438 fpm_event_set_timeout(ev, now); in fpm_event_loop()
498 struct timeval now; in fpm_event_add() local
519 fpm_clock_get(&now); in fpm_event_add()
[all …]
H A Dfpm_process_ctl.c297 static void fpm_pctl_check_request_timeout(struct timeval *now) /* {{{ */ in fpm_pctl_check_request_timeout() argument
327 static void fpm_pctl_perform_idle_server_maintenance(struct timeval *now) /* {{{ */ in fpm_pctl_perform_idle_server_maintenance() argument
380 struct timeval last, now; in fpm_pctl_perform_idle_server_maintenance() local
387 fpm_clock_get(&now); in fpm_pctl_perform_idle_server_maintenance()
388 if (last.tv_sec < now.tv_sec - wp->config->pm_process_idle_timeout) { in fpm_pctl_perform_idle_server_maintenance()
462 struct timeval now; in fpm_pctl_heartbeat() local
469 fpm_clock_get(&now); in fpm_pctl_heartbeat()
470 fpm_pctl_check_request_timeout(&now); in fpm_pctl_heartbeat()
487 struct timeval now; in fpm_pctl_perform_idle_server_maintenance_heartbeat() local
494 fpm_clock_get(&now); in fpm_pctl_perform_idle_server_maintenance_heartbeat()
[all …]
/php-src/ext/spl/tests/
H A Dbug81992b.phpt14 echo "Destroyed, size is now still ", $this->obj->getSize(), "\n";
34 echo "Size is now ", $obj->getSize(), "\n";
48 Destroyed, size is now still 2
51 Size is now 1
55 Destroyed, size is now still 2
57 Size is now 2
62 Destroyed, size is now still 2
64 Size is now 10
/php-src/ext/standard/tests/misc/
H A Dtime_sleep_until_basic.phpt17 $now = microtime(true);
28 $tmp = round($now, 3);
29 $now = $tmp >= (int)$time ? $tmp : $tmp + .05;
33 if ($now + 0.002 >= $sleepUntil) {
38 echo "Now: ", $now, "\n";
/php-src/ext/standard/tests/array/
H A Darray_splice_basic.phpt14 // $input is now array("red", "green")
20 // $input is now array("red", "green")
26 // $input is now array("red", "yellow")
32 // $input is now array("red", "orange")
37 // $input is now array("red", "green",
44 // $input is now array("red", "green",
/php-src/ext/standard/tests/streams/
H A Dbug60106-002.phpt25 /* No we create an abstract one, prefixed with \0 so this should now work */
31 /* And now one longer, which should fail again */
35 echo "Allowed length is now one more: ", $max_normal_length == $old_max_length + 1 ? "yes" : "no", …
40 Allowed length is now one more: yes
/php-src/ext/intl/tests/
H A Dcalendar_getNow_basic.phpt10 $now = IntlCalendar::getNow();
13 var_dump(abs($now - $proc_now) < 500);
/php-src/ext/xmlwriter/tests/
H A Dbug71536.phpt15 die('now'); // crashed with die()
22 now
/php-src/Zend/tests/
H A Dgh13097_b.phpt9 get_class($anonymous).' ...now you don\'t!',
15 Fatal error: Uncaught Exception: class@anonymous%s ...now you don't! in %s:%d
H A Dgh13097_a.phpt9 get_class($anonymous).' ...now you don\'t!',
17 Fatal error: class@anonymous%s ...now you don't! in %s on line %d
/php-src/ext/standard/tests/file/windows_mb_path/
H A Dutil.inc82 $now = get_basename_with_cp($full, $cp, false);
83 if ($now !== $basename) {
84 echo "expected '$basename', got '$now'\n";
102 $now = get_basename_with_cp($full, $cp, false);
103 if ($now !== $basename) {
104 echo "expected '$basename', got '$now'\n";
/php-src/
H A DUPGRADING23 . bzcompress() now throws a ValueError when $block_size is not between
25 . bzcompress() now throws a ValueError when $work_factor is not between
33 . The extension now requires at least ICU 57.1.
36 . ldap_get_option() and ldap_set_option() now throw a ValueError when
53 now actually works instead of being treated as empty.
151 PHP_RELEASE_VERSION are now always numbers. Previously, they have been
155 . The extension is now build shared by default; previously it defaulted to a
/php-src/ext/pgsql/tests/
H A D80_bug39971.phpt2 Bug #39971 (8.0+) (pg_insert/pg_update do not allow now() to be used for timestamp fields)
19 $values = array('tm' => 'now()');

Completed in 24 milliseconds

12345678