/PHP-5.3/ext/date/tests/ |
H A D | DateTime_data-fall-type2-type2.inc | 24 $end = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2 29 $end = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 30 $start = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2 35 $start = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2 44 $end = new DateTime('2010-11-07 03:16:55 EST'); // st, zt2 55 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 60 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 65 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 70 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 74 $end = new DateTime('2010-11-07 03:16:55 EST'); // st, zt2 [all …]
|
H A D | DateTime_data-fall-type2-type3.inc | 24 $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3 29 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3 46 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 51 $end = new DateTime('2010-11-08 19:59:59'); // post, zt3 56 $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3 78 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 93 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3 110 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 125 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3 142 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 [all …]
|
H A D | DateTime_data-spring-type2-type3.inc | 22 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3 27 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3 32 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 37 $end = new DateTime('2010-03-15 19:59:59'); // post, zt3 42 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3 52 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 57 $end = new DateTime('2010-03-15 19:59:59'); // post, zt3 62 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3 67 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3 87 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3 [all …]
|
H A D | DateTime_data-spring-type3-type2.inc | 28 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 33 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 38 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 43 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 48 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 53 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 58 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 63 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 68 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 73 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 [all …]
|
H A D | DateTime_data-spring-type3-type3.inc | 22 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3 27 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3 28 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 32 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 33 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 43 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 48 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 52 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 53 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 58 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 [all …]
|
H A D | DateTime_data-fall-type3-type2.inc | 29 $end = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 30 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 36 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 42 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 47 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 57 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 62 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 67 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 72 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 77 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 [all …]
|
H A D | bug51393.phpt | 7 $dt = DateTime::createFromFormat('O', '+0800'); 10 $dt = DateTime::createFromFormat('P', '+08:00'); 13 $dt = DateTime::createFromFormat('O', '-0800'); 16 $dt = DateTime::createFromFormat('P', '-08:00'); 19 $dt = DateTime::createFromFormat('[O]', '[+0800]'); 22 $dt = DateTime::createFromFormat('[P]', '[+08:00]'); 25 $dt = DateTime::createFromFormat('[O]', '[-0800]'); 31 $dt = DateTime::createFromFormat('O', 'GMT+0800'); 34 $dt = DateTime::createFromFormat('P', 'GMT+08:00'); 37 $dt = DateTime::createFromFormat('O', 'GMT-0800'); [all …]
|
H A D | DateTime_data-spring-type2-type2.inc | 22 $end = new DateTime('2010-03-13 18:38:28 EST'); // prev, zt2 27 $end = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 28 $start = new DateTime('2010-03-13 18:38:28 EST'); // prev, zt2 32 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 33 $start = new DateTime('2010-03-13 18:38:28 EST'); // prev, zt2 43 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 48 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 52 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 53 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 58 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 [all …]
|
H A D | DateTime_data-fall-type3-type3.inc | 24 $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3 29 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3 30 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 36 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 46 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 57 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 62 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 68 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 74 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 78 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 [all …]
|
H A D | DateTime_construct_basic1.phpt | 2 Test new DateTime() : basic functionality 6 * Description: Returns new DateTime object 16 var_dump( new DateTime('') ); 18 var_dump( new DateTime("GMT") ); 19 var_dump( new DateTime("2005-07-14 22:30:41") ); 20 var_dump( new DateTime("2005-07-14 22:30:41 GMT") ); 25 *** Testing new DateTime() : basic functionality *** 26 object(DateTime)#%d (3) { 34 object(DateTime)#%d (3) { 42 object(DateTime)#%d (3) { [all …]
|
H A D | DateTime_setDate_error.phpt | 2 Test DateTime::setDate() function : error conditions 5 /* Prototype : public DateTime DateTime::setDate ( int $year , int $month , int $day ) 6 * Description: Resets the current date of the DateTime object to a different date. 13 echo "*** Testing DateTime::setDate() : error conditions ***\n"; 15 $datetime = new DateTime("2009-01-30 19:34:10"); 17 echo "\n-- Testing DateTime::setDate() function with zero arguments --\n"; 34 *** Testing DateTime::setDate() : error conditions *** 36 -- Testing DateTime::setDate() function with zero arguments -- 38 Warning: DateTime::setDate() expects exactly 3 parameters, 0 given in %s on line %d 41 -- Testing DateTime::setDate() function with less than expected no. of arguments -- [all …]
|
H A D | DateTime_verify.phpt | 2 Test DateTime class registration 27 string(8) "DateTime" 36 string(8) "DateTime" 43 string(8) "DateTime" 50 string(8) "DateTime" 57 string(8) "DateTime" 64 string(8) "DateTime" 71 string(8) "DateTime" 78 string(8) "DateTime" 85 string(8) "DateTime" [all …]
|
H A D | DateTime_construct_variation1.phpt | 143 object(DateTime)#%d (3) { 151 object(DateTime)#%d (3) { 165 object(DateTime)#%d (3) { 173 object(DateTime)#%d (3) { 199 object(DateTime)#%d (3) { 207 object(DateTime)#%d (3) { 217 object(DateTime)#%d (3) { 225 object(DateTime)#%d (3) { 239 object(DateTime)#%d (3) { 247 object(DateTime)#%d (3) { [all …]
|
H A D | DateTime_setTimezone_error.phpt | 2 Test DateTime::setTimezone () function : error conditions 5 /* Prototype : public DateTime DateTime::setTimezone ( DateTimeZone $timezone ) 6 * Description: Sets the time zone for the DateTime object 13 echo "*** Testing DateTime::setTimezone () : error conditions ***\n"; 15 $datetime = new DateTime("2009-01-30 17:57:32"); 17 echo "\n-- Testing DateTime::setTimezone () function with zero arguments --\n"; 28 *** Testing DateTime::setTimezone () : error conditions *** 30 -- Testing DateTime::setTimezone () function with zero arguments -- 32 Warning: DateTime::setTimezone() expects exactly 1 parameter, 0 given in %s on line %d 35 -- Testing DateTime::setTimezone () function with more than expected no. of arguments -- [all …]
|
H A D | DateTime_construct_variation2.phpt | 6 * Description: Returns new DateTime object 104 var_dump( new DateTime($time, $timezone) ); 133 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, double given 142 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, array given 145 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, array given 148 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, array given 151 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, array given 154 object(DateTime)#%d (3) { 164 object(DateTime)#%d (3) { 210 object(DateTime)#%d (3) { [all …]
|
H A D | DateTime_format_basic2.phpt | 15 $date = new DateTime("2005-07-14 22:30:41"); 17 var_dump( $date->format( DateTime::ATOM) ) ; 18 var_dump( $date->format( DateTime::COOKIE) ) ; 19 var_dump( $date->format( DateTime::ISO8601) ) ; 20 var_dump( $date->format( DateTime::RFC822) ) ; 21 var_dump( $date->format( DateTime::RFC850) ) ; 22 var_dump( $date->format( DateTime::RFC1036) ) ; 23 var_dump( $date->format( DateTime::RFC1123) ) ; 25 var_dump( $date->format( DateTime::RFC3339) ) ; 26 var_dump( $date->format( DateTime::RSS) ) ; [all …]
|
H A D | DateTime_setTime_error.phpt | 2 Test DateTime::setTime() function : error conditions 5 /* Prototype : public DateTime DateTime::setTime ( int $hour , int $minute [, int $second ] ) 6 * Description: Resets the current time of the DateTime object to a different time. 13 echo "*** Testing DateTime::setTime() : error conditions ***\n"; 17 echo "\n-- Testing DateTime::setTime() function with zero arguments --\n"; 33 *** Testing DateTime::setTime() : error conditions *** 35 -- Testing DateTime::setTime() function with zero arguments -- 37 Warning: DateTime::setTime() expects at least 2 parameters, 0 given in %s on line %d 40 -- Testing DateTime::setTime() function with less than expected no. of arguments -- 45 -- Testing DateTime::setTime() function with more than expected no. of arguments -- [all …]
|
H A D | DateTime_modify_error.phpt | 2 Test DateTime::modify() function : error conditions 5 /* Prototype : public DateTime DateTime::modify ( string $modify ) 14 echo "*** Testing DateTime::modify() : error conditions ***\n"; 17 $object = new DateTime("2009-01-30 19:34:10"); 19 echo "\n-- Testing DateTime::modify() function with less than expected no. of arguments --\n"; 22 echo "\n-- Testing DateTime::modify() function with more than expected no. of arguments --\n"; 30 *** Testing DateTime::modify() : error conditions *** 32 -- Testing DateTime::modify() function with less than expected no. of arguments -- 34 Warning: DateTime::modify() expects exactly 1 parameter, 0 given in %s on line %d 37 -- Testing DateTime::modify() function with more than expected no. of arguments -- [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type1.phpt | 2 RFC: DateTime and Daylight Saving Time Transitions (zone type 1) 16 $end = new DateTime('2010-03-14 03:00:00 -0400'); 17 $start = new DateTime('2010-03-14 01:59:59 -0500'); 21 $end = new DateTime('2010-03-14 04:30:00 -0400'); 22 $start = new DateTime('2010-03-13 04:30:00 -0500'); 26 $end = new DateTime('2010-03-14 03:30:00 -0400'); 27 $start = new DateTime('2010-03-13 04:30:00 -0500'); 31 $end = new DateTime('2010-03-14 01:30:00 -0500'); 32 $start = new DateTime('2010-03-13 04:30:00 -0500'); 36 $end = new DateTime('2010-03-14 01:30:00 -0500'); [all …]
|
H A D | DateTime_setDate_variation1.phpt | 5 /* Prototype : public DateTime DateTime::setDate ( int $year , int $month , int $day ) 116 object(DateTime)#%d (3) { 126 object(DateTime)#%d (3) { 136 object(DateTime)#%d (3) { 146 object(DateTime)#%d (3) { 156 object(DateTime)#%d (3) { 166 object(DateTime)#%d (3) { 176 object(DateTime)#%d (3) { 206 object(DateTime)#%d (3) { 216 object(DateTime)#%d (3) { [all …]
|
H A D | DateTime_setDate_variation2.phpt | 5 /* Prototype : public DateTime DateTime::setDate ( int $year , int $month , int $day ) 116 object(DateTime)#%d (3) { 126 object(DateTime)#%d (3) { 136 object(DateTime)#%d (3) { 146 object(DateTime)#%d (3) { 156 object(DateTime)#%d (3) { 166 object(DateTime)#%d (3) { 176 object(DateTime)#%d (3) { 206 object(DateTime)#%d (3) { 216 object(DateTime)#%d (3) { [all …]
|
H A D | DateTime_setDate_variation3.phpt | 5 /* Prototype : public DateTime DateTime::setDate ( int $year , int $month , int $day ) 116 object(DateTime)#%d (3) { 126 object(DateTime)#%d (3) { 136 object(DateTime)#%d (3) { 146 object(DateTime)#%d (3) { 156 object(DateTime)#%d (3) { 166 object(DateTime)#%d (3) { 176 object(DateTime)#%d (3) { 206 object(DateTime)#%d (3) { 216 object(DateTime)#%d (3) { [all …]
|
H A D | DateTime_setTime_variation1.phpt | 116 object(DateTime)#%d (3) { 126 object(DateTime)#%d (3) { 136 object(DateTime)#%d (3) { 146 object(DateTime)#%d (3) { 156 object(DateTime)#%d (3) { 166 object(DateTime)#%d (3) { 176 object(DateTime)#%d (3) { 206 object(DateTime)#%d (3) { 216 object(DateTime)#%d (3) { 226 object(DateTime)#%d (3) { [all …]
|
H A D | DateTime_setTime_variation2.phpt | 116 object(DateTime)#%d (3) { 126 object(DateTime)#%d (3) { 136 object(DateTime)#%d (3) { 146 object(DateTime)#%d (3) { 156 object(DateTime)#%d (3) { 166 object(DateTime)#%d (3) { 176 object(DateTime)#%d (3) { 206 object(DateTime)#%d (3) { 216 object(DateTime)#%d (3) { 226 object(DateTime)#%d (3) { [all …]
|
H A D | DateTime_setTime_variation3.phpt | 116 object(DateTime)#%d (3) { 126 object(DateTime)#%d (3) { 136 object(DateTime)#%d (3) { 146 object(DateTime)#%d (3) { 156 object(DateTime)#%d (3) { 166 object(DateTime)#%d (3) { 176 object(DateTime)#%d (3) { 206 object(DateTime)#%d (3) { 216 object(DateTime)#%d (3) { 226 object(DateTime)#%d (3) { [all …]
|