Home
last modified time | relevance | path

Searched refs:interval (Results 1 – 25 of 30) sorted by relevance

12

/PHP-5.3/ext/date/tests/
H A DDateInterval_format.phpt18 $interval = $date1->diff($date2);
20 echo $interval->format('Y=%Y') . "\n";
21 echo $interval->format('M=%M') . "\n";
22 echo $interval->format('D=%D') . "\n";
23 echo $interval->format('H=%H') . "\n";
24 echo $interval->format('I=%I') . "\n";
25 echo $interval->format('S=%S') . "\n";
26 echo $interval->format('R=%R') . "\n";
28 echo $interval->format('y=%y') . "\n";
29 echo $interval->format('m=%m') . "\n";
[all …]
H A Drfc-datetime_and_daylight_saving_time-type1.phpt59 $interval = new DateInterval($interval_spec);
65 $interval = new DateInterval($interval_spec);
71 $interval = new DateInterval($interval_spec);
77 $interval = new DateInterval($interval_spec);
83 $interval = new DateInterval($interval_spec);
89 $interval = new DateInterval($interval_spec);
101 $interval = new DateInterval($interval_spec);
107 $interval = new DateInterval($interval_spec);
113 $interval = new DateInterval($interval_spec);
119 $interval = new DateInterval($interval_spec);
[all …]
H A Drfc-datetime_and_daylight_saving_time-type2.phpt59 $interval = new DateInterval($interval_spec);
65 $interval = new DateInterval($interval_spec);
71 $interval = new DateInterval($interval_spec);
77 $interval = new DateInterval($interval_spec);
83 $interval = new DateInterval($interval_spec);
89 $interval = new DateInterval($interval_spec);
101 $interval = new DateInterval($interval_spec);
107 $interval = new DateInterval($interval_spec);
113 $interval = new DateInterval($interval_spec);
119 $interval = new DateInterval($interval_spec);
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3.phpt61 $interval = new DateInterval($interval_spec);
67 $interval = new DateInterval($interval_spec);
73 $interval = new DateInterval($interval_spec);
79 $interval = new DateInterval($interval_spec);
85 $interval = new DateInterval($interval_spec);
91 $interval = new DateInterval($interval_spec);
103 $interval = new DateInterval($interval_spec);
109 $interval = new DateInterval($interval_spec);
115 $interval = new DateInterval($interval_spec);
121 $interval = new DateInterval($interval_spec);
[all …]
H A Dbug55253.phpt10 $interval = new DateInterval('PT2H1M');
18 echo $interval->format('Add %h hours %i minutes') . "\n";
19 $date3->add($interval);
20 $date2->add($interval);
29 echo $interval->format('Subtract %h hours %i minutes from expected') . "\n";
30 $date3->sub($interval);
31 $date2->sub($interval);
H A Ddate_sub_basic.phpt10 /* Prototype : void date_sub(DateTime object, DateInterval interval)
11 * Description: Subtracts an interval from the current date in object.
31 foreach($intervals as $interval) {
32 date_sub($d, new DateInterval($interval) );
H A Ddate_add_basic.phpt10 /* Prototype : void date_add(DateTime object, DateInterval interval)
11 * Description: Adds an interval to the current date in object.
31 foreach($intervals as $interval) {
32 date_add($d, new DateInterval($interval) );
H A Dbug54340.phpt7 $interval = new DateInterval('P1D');
12 $dt->add($interval);
17 $dt->sub($interval);
H A DDateInterval_format_a.phpt18 $interval = $date1->diff($date2);
20 echo $interval->format('a=%a') . "\n";
H A Dbug52668.phpt8 $interval = DateInterval::createFromDateString('next day');
9 $dp = new DatePeriod($start, $interval, 1);
H A Dbug44562.phpt17 $interval = DateInterval::createFromDateString( "1 day" );
19 $dp = new DatePeriod( $begin, $interval, 10 );
H A Dbug52808.phpt2 Bug #52808 (Segfault when specifying interval as two dates)
124 DateInterval::__construct(): Failed to parse interval (2007-05-11T15:30:00Z/)
125 DateInterval::__construct(): Failed to parse interval (2007-05-11T15:30:00Z)
H A Dbug49081.phpt2 Bug #49081 (DateTime::diff() mistake if start in January and interval > 28 days)
H A Dbug53437.phpt53 ["interval"]=>
112 ["interval"]=>
H A Dbug49778.phpt2 Bug #49778 (DateInterval::format("%a") is always zero when an interval is created from an ISO strin…
H A Dbug52113.phpt130 ["interval"]=>
214 ["interval"]=>
H A Dexamine_diff.inc26 * special interval specification used for this test suite.
30 * interval's "days" property
/PHP-5.3/ext/zlib/tests/
H A Dgztell_basic.phpt17 foreach ($intervals as $interval) {
18 gzread($h, $interval);
/PHP-5.3/ext/oci8/tests/
H A Dbug42173.phpt35 interval'1-2' year to month,
36 interval'10-4' year to month,
37 interval'1 2:20:20.123' day to second,
38 interval'1 2:20:20.12345' day to second)");
/PHP-5.3/ext/standard/tests/general_functions/
H A Dsleep_error.phpt21 echo "\n-- Testing sleep() function with negative interval --\n";
40 -- Testing sleep() function with negative interval --
H A Dusleep_error.phpt22 echo "\n-- Testing usleep() function with negative interval --\n";
41 -- Testing usleep() function with negative interval --
/PHP-5.3/ext/date/
H A Dconfig.w325 …w.c parse_date.c parse_tz.c tm2unixtime.c unixtime2tm.c parse_iso_intervals.c interval.c", "date");
H A Dconfig0.m49 … lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
H A Dphp_date.c197 ZEND_ARG_INFO(0, interval)
201 ZEND_ARG_INFO(0, interval)
206 ZEND_ARG_INFO(0, interval)
210 ZEND_ARG_INFO(0, interval)
372 ZEND_ARG_INFO(0, interval)
2899 zval *object, *interval; in PHP_FUNCTION() local
3211 php_interval_obj *interval; in PHP_FUNCTION() local
3228 interval->diff->invert = 0; in PHP_FUNCTION()
3230 interval->initialized = 1; in PHP_FUNCTION()
3930 if (dpobj->interval == NULL) { in PHP_METHOD()
[all …]
H A Dphp_date.h148 timelib_rel_time *interval; member

Completed in 54 milliseconds

12