Home
last modified time | relevance | path

Searched refs:date_create (Results 1 – 25 of 82) sorted by relevance

1234

/PHP-7.3/ext/date/tests/
H A Ddate_create-1.phpt2 date_create() function [1]
10 $d[] = date_create("2005-07-14 22:30:41");
11 $d[] = date_create("2005-07-14 22:30:41 GMT");
12 $d[] = date_create("2005-07-14 22:30:41 CET");
13 $d[] = date_create("2005-07-14 22:30:41 CEST");
14 $d[] = date_create("2005-07-14 22:30:41 Europe/Oslo");
17 $d[] = date_create("2005-07-14 22:30:41", $tz1);
18 $d[] = date_create("2005-07-14 22:30:41", $tz2);
19 $d[] = date_create("2005-07-14 22:30:41", $tz3);
21 $d[] = date_create("2005-07-14 22:30:41 GMT", $tz1);
[all …]
H A Ddate_create_error.phpt2 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 Ddate_create_basic.phpt2 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 Ddate_create_variation2.phpt2 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, int given in %s on line %d
120 Warning: date_create() expects parameter 2 to be DateTimeZone, int given in %s on line %d
125 Warning: date_create() expects parameter 2 to be DateTimeZone, int given in %s on line %d
130 Warning: date_create() expects parameter 2 to be DateTimeZone, int given in %s on line %d
135 Warning: date_create() expects parameter 2 to be DateTimeZone, float given in %s on line %d
190 Warning: date_create() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
195 Warning: date_create() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
[all …]
H A Ddate_format_error.phpt16 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 Ddate_create-2.phpt2 date_create() function [2]
6 $d = date_create("2005-07-18 22:10:00 +0400");
9 $d = date_create("@1121710200 +0912");
H A Ddate_create_variation1.phpt2 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 Dbug50055.phpt7 $da1 = date_create( $now );
8 $ds1 = date_create( $now );
15 $da2 = date_create( $now );
16 $ds2 = date_create( $now );
H A Ddate_time_immutable.phpt22 $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 Ddate_modify-1.phpt6 $ts = date_create("Fri Aug 20 1993 23:59:59");
12 $ts = date_create("Sun Mar 27 01:59:59 2005");
17 $ts = date_create("Sun Oct 30 01:59:59 2005");
H A Ddate_offset_get_basic1.phpt16 $winter = date_create('2008-12-25 14:25:41');
17 $summer = date_create('2008-07-02 14:25:41');
H A Dbug43808.phpt2 Bug #43808 (date_create never fails (even when it should))
5 $date = date_create('asdfasdf');
H A Ddate_timezone_get_basic1.phpt14 $object = date_create("2009-01-30 17:57:32");
19 $object = date_create("2009-01-30 17:57:32");
H A Ddate_timezone_set_basic1.phpt16 $datetime = date_create("2009-01-30 17:57:32");
20 $datetime = date_create("2009-01-30 22:57:32");
H A Ddate_default_timezone_get_error.phpt14 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 DDateTime_construct_error.phpt13 echo "*** Testing date_create() : error conditions ***\n";
28 *** Testing date_create() : error conditions ***
H A Dbug43075.phpt6 $d = date_create("2007-11-01T24:34:00+00:00");
H A Dtimestamp-in-dst.phpt7 var_dump( date_create( '@1202996091' )->format( 'c' ) );
H A Dbug41842.phpt2 Bug #41842 (Cannot create years < 0100 & negative years with date_create or new DateTime)
H A Dbug49059.phpt7 $date1 = date_create("2009-03-27");
8 $date2 = date_create("2009-03-01");
H A Ddate_create-relative.phpt2 date_create() with large relative offsets
47 $dt = date_create("$base_time $direction$offset");
H A Ddate_sun_info_error.phpt24 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 Ddate_modify-2.phpt6 $d = date_create("2005-07-18 22:10:00 +0400");
/PHP-7.3/ext/pgsql/tests/
H A Dbug71062.phpt17 $date_string_php_iso8601 = date_create('8 Dec 2015 5:38')->format(DateTime::ISO8601);
21 $date_string_modified_iso8601 = date_create('8 Dec 2015 5:38')->format($modified_format);
/PHP-7.3/ext/intl/tests/
H A Ddateformat_bug65683_2.phpt5 $date = date_create('1970-01-01');

Completed in 35 milliseconds

1234