Searched refs:date_create (Results 1 – 25 of 76) sorted by relevance
1234
/PHP-5.6/ext/date/tests/ |
H A D | date_create-1.phpt | 2 date_create() function [1] 4 <?php if (!function_exists('date_create')) echo "SKIP"; ?> 12 $d[] = date_create("2005-07-14 22:30:41"); 13 $d[] = date_create("2005-07-14 22:30:41 GMT"); 14 $d[] = date_create("2005-07-14 22:30:41 CET"); 15 $d[] = date_create("2005-07-14 22:30:41 CEST"); 19 $d[] = date_create("2005-07-14 22:30:41", $tz1); 20 $d[] = date_create("2005-07-14 22:30:41", $tz2); 21 $d[] = date_create("2005-07-14 22:30:41", $tz3); 23 $d[] = date_create("2005-07-14 22:30:41 GMT", $tz1); [all …]
|
H A D | date_create_error.phpt | 2 Test date_create() function : error conditions 5 /* Prototype : DateTime date_create ([ string $time [, DateTimeZone $timezone ]] ) 11 echo "*** Testing date_create() : error conditions ***\n"; 13 echo "\n-- Testing date_create() function with more than expected no. of arguments --\n"; 17 var_dump( date_create($time, $timezone, $extra_arg) ); 22 *** Testing date_create() : error conditions *** 24 -- Testing date_create() function with more than expected no. of arguments -- 26 Warning: date_create() expects at most 2 parameters, 3 given in %s on line %d
|
H A D | date_create_basic.phpt | 2 Test date_create() function : basic functionality 5 /* Prototype : DateTime date_create ([ string $time [, DateTimeZone $timezone ]] ) 14 echo "*** Testing date_create() : basic functionality ***\n"; 16 var_dump( date_create() ); 18 var_dump( date_create("GMT") ); 19 var_dump( date_create("2005-07-14 22:30:41") ); 20 var_dump( date_create("2005-07-14 22:30:41 GMT") ); 25 *** Testing date_create() : basic functionality ***
|
H A D | date_create_variation2.phpt | 2 Test date_create() function : usage variation - Passing unexpected values to second argument $timez… 5 /* Prototype : DateTime date_create ([ string $time [, DateTimeZone $timezone ]] ) 102 var_dump( date_create($time, $timezone) ); 115 Warning: date_create() expects parameter 2 to be DateTimeZone, integer given in %s on line %d 135 Warning: date_create() expects parameter 2 to be DateTimeZone, double given in %s on line %d 140 Warning: date_create() expects parameter 2 to be DateTimeZone, double given in %s on line %d 145 Warning: date_create() expects parameter 2 to be DateTimeZone, double given in %s on line %d 150 Warning: date_create() expects parameter 2 to be DateTimeZone, array given in %s on line %d 155 Warning: date_create() expects parameter 2 to be DateTimeZone, array given in %s on line %d 160 Warning: date_create() expects parameter 2 to be DateTimeZone, array given in %s on line %d [all …]
|
H A D | date_create-2.phpt | 2 date_create() function [2] 4 <?php if (!function_exists('date_create')) echo "SKIP"; ?> 8 $d = date_create("2005-07-18 22:10:00 +0400"); 11 $d = date_create("@1121710200 +0912");
|
H A D | date_format_error.phpt | 16 echo "\n-- Testing date_create() function with zero arguments --\n"; 19 $date = date_create("2005-07-14 22:30:41"); 21 echo "\n-- Testing date_create() function with less than expected no. of arguments --\n"; 24 echo "\n-- Testing date_create() function with more than expected no. of arguments --\n"; 29 echo "\n-- Testing date_create() function with an invalid values for \$object argument --\n"; 42 -- Testing date_create() function with zero arguments -- 47 -- Testing date_create() function with less than expected no. of arguments -- 52 -- Testing date_create() function with more than expected no. of arguments -- 57 -- Testing date_create() function with an invalid values for $object argument --
|
H A D | date_create_variation1.phpt | 2 Test date_create() function : usage variation - Passing unexpected values to first argument $time. 5 /* Prototype : DateTime date_create ([ string $time [, DateTimeZone $timezone ]] ) 102 var_dump( date_create($time) ); 103 var_dump( date_create($time, $timezone) ); 172 Warning: date_create() expects parameter 1 to be string, array given in %s on line %d 175 Warning: date_create() expects parameter 1 to be string, array given in %s on line %d 180 Warning: date_create() expects parameter 1 to be string, array given in %s on line %d 183 Warning: date_create() expects parameter 1 to be string, array given in %s on line %d 188 Warning: date_create() expects parameter 1 to be string, array given in %s on line %d 191 Warning: date_create() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | bug50055.phpt | 7 $da1 = date_create( $now ); 8 $ds1 = date_create( $now ); 15 $da2 = date_create( $now ); 16 $ds2 = date_create( $now );
|
H A D | date_modify-1.phpt | 4 <?php if (!function_exists('date_create')) echo "SKIP"; ?> 8 $ts = date_create("Thu Aug 19 1993 23:59:59"); 14 $ts = date_create("Sun Mar 27 01:59:59 2005"); 19 $ts = date_create("Sun Oct 30 01:59:59 2005");
|
H A D | date_time_immutable.phpt | 22 $v = date_create($current); 32 $v = date_create($current); 42 $v = date_create($current); 52 $v = date_create($current); 66 $v = date_create($current); 76 $v = date_create($current); 86 $v = date_create($current); 96 $v = date_create($current);
|
H A D | date_modify-2.phpt | 4 <?php if (!function_exists('date_create')) echo "SKIP"; ?> 8 $d = date_create("2005-07-18 22:10:00 +0400");
|
H A D | date_default_timezone_get_error.phpt | 14 echo "\n-- Testing date_create() function with more than expected no. of arguments --\n"; 24 -- Testing date_create() function with more than expected no. of arguments --
|
H A D | date_offset_get_basic1.phpt | 16 $winter = date_create('2008-12-25 14:25:41'); 17 $summer = date_create('2008-07-02 14:25:41');
|
H A D | bug43808.phpt | 2 Bug #43808 (date_create never fails (even when it should)) 5 $date = date_create('asdfasdf');
|
H A D | date_timezone_get_basic1.phpt | 14 $object = date_create("2009-01-30 17:57:32"); 19 $object = date_create("2009-01-30 17:57:32");
|
H A D | date_timezone_set_basic1.phpt | 16 $datetime = date_create("2009-01-30 17:57:32"); 20 $datetime = date_create("2009-01-30 22:57:32");
|
H A D | DateTime_construct_error.phpt | 13 echo "*** Testing date_create() : error conditions ***\n"; 24 *** Testing date_create() : error conditions ***
|
H A D | bug43075.phpt | 6 $d = date_create("2007-11-01T24:34:00+00:00");
|
H A D | bug41842.phpt | 2 Bug #41842 (Cannot create years < 0100 & negative years with date_create or new DateTime)
|
H A D | timestamp-in-dst.phpt | 8 var_dump( date_create( '@1202996091' )->format( 'c' ) );
|
H A D | bug49059.phpt | 7 $date1 = date_create("2009-03-27"); 8 $date2 = date_create("2009-03-01");
|
H A D | date_create-relative.phpt | 2 date_create() with large relative offsets 47 $dt = date_create("$base_time $direction$offset");
|
H A D | date_sun_info_error.phpt | 24 var_dump( date_create($time, $latitude, $longitude, $extra_arg) ); 44 Warning: date_create() expects at most 2 parameters, 4 given in %s on line %d
|
H A D | bug44742.phpt | 21 $date = date_create($date);
|
H A D | bug52063.phpt | 9 $a = date_create("2009-01-01", null);
|
Completed in 24 milliseconds
1234