Searched refs:interval (Results 1 – 25 of 30) sorted by relevance
12
/PHP-5.3/ext/date/tests/ |
H A D | DateInterval_format.phpt | 18 $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 D | rfc-datetime_and_daylight_saving_time-type1.phpt | 59 $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 D | rfc-datetime_and_daylight_saving_time-type2.phpt | 59 $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 D | rfc-datetime_and_daylight_saving_time-type3.phpt | 61 $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 D | bug55253.phpt | 10 $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 D | date_sub_basic.phpt | 10 /* 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 D | date_add_basic.phpt | 10 /* 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 D | bug54340.phpt | 7 $interval = new DateInterval('P1D'); 12 $dt->add($interval); 17 $dt->sub($interval);
|
H A D | DateInterval_format_a.phpt | 18 $interval = $date1->diff($date2); 20 echo $interval->format('a=%a') . "\n";
|
H A D | bug52668.phpt | 8 $interval = DateInterval::createFromDateString('next day'); 9 $dp = new DatePeriod($start, $interval, 1);
|
H A D | bug44562.phpt | 17 $interval = DateInterval::createFromDateString( "1 day" ); 19 $dp = new DatePeriod( $begin, $interval, 10 );
|
H A D | bug52808.phpt | 2 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 D | bug49081.phpt | 2 Bug #49081 (DateTime::diff() mistake if start in January and interval > 28 days)
|
H A D | bug53437.phpt | 53 ["interval"]=> 112 ["interval"]=>
|
H A D | bug49778.phpt | 2 Bug #49778 (DateInterval::format("%a") is always zero when an interval is created from an ISO strin…
|
H A D | bug52113.phpt | 130 ["interval"]=> 214 ["interval"]=>
|
H A D | examine_diff.inc | 26 * special interval specification used for this test suite. 30 * interval's "days" property
|
/PHP-5.3/ext/zlib/tests/ |
H A D | gztell_basic.phpt | 17 foreach ($intervals as $interval) { 18 gzread($h, $interval);
|
/PHP-5.3/ext/oci8/tests/ |
H A D | bug42173.phpt | 35 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 D | sleep_error.phpt | 21 echo "\n-- Testing sleep() function with negative interval --\n"; 40 -- Testing sleep() function with negative interval --
|
H A D | usleep_error.phpt | 22 echo "\n-- Testing usleep() function with negative interval --\n"; 41 -- Testing usleep() function with negative interval --
|
/PHP-5.3/ext/date/ |
H A D | config.w32 | 5 …w.c parse_date.c parse_tz.c tm2unixtime.c unixtime2tm.c parse_iso_intervals.c interval.c", "date");
|
H A D | config0.m4 | 9 … lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
|
H A D | php_date.c | 197 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 D | php_date.h | 148 timelib_rel_time *interval; member
|
Completed in 54 milliseconds
12