Home
last modified time | relevance | path

Searched refs:date (Results 51 – 75 of 796) sorted by relevance

12345678910>>...32

/PHP-7.2/ext/date/tests/
H A Dbug35699.phpt2 Bug #35699 (date() can't handle leap years before 1970)
7 echo date(DATE_ISO8601, strtotime('1964-06-06')), "\n";
8 echo date(DATE_ISO8601, strtotime('1963-06-06')), "\n";
9 echo date(DATE_ISO8601, strtotime('1964-01-06')), "\n";
H A Dbug33414-2.phpt8 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
10 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
16 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
18 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
24 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
32 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
40 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
48 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
56 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
64 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
[all …]
H A Dbug75851.phpt2 Test for bug #75851: Year component overflow with date formats "c", "o", "r" and "y"
6 date.timezone = UTC
9 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", PHP_INT_MIN);
10 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", 67767976233532799);
11 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", 67767976233532800);
12 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", PHP_INT_MAX);
H A Dbug28088.phpt4 date.timezone=UTC
7 echo "The following line rightly shows the correct date time:\n";
10 echo "But the following line fails to show the correct date time:\n";
14 The following line rightly shows the correct date time:
16 But the following line fails to show the correct date time:
H A Dbug67308.phpt4 date.timezone=America/Vancouver
8 var_dump(unserialize('O:8:"DateTime":3:{s:4:"date";s:19:"2005-07-14 22:30:41";s:13:"timezone_type";…
11 var_dump(unserialize('O:8:"DateTime":3:{s:4:"date";s:26:"2005-07-14 22:30:41.123456";s:13:"timezone…
14 ["date"]=>
22 ["date"]=>
H A Dbug69089.phpt9 $date = new DateTime('2009-09-28 09:45:31.918312');
11 var_dump($date->format(DateTime::RFC3339_EXTENDED));
12 var_dump($date->format('u'));
13 var_dump($date->format('v'));
H A Dstrftime_variation21.phpt2 Test strftime() function : usage variation - Checking Preferred date and time representation on Win…
12 * Description: Format a local time/date according to locale settings
13 * Source code: ext/date/php_date.c
26 'Preferred date and time representation' => "%c",
27 'Preferred date representation' => "%x",
44 --Preferred date and time representation--
48 --Preferred date representation--
H A Dbug35414.phpt7 echo date(DATE_ISO8601, strtotime("Sat 26th Nov 2005 18:18")) . "\n";
8 echo date(DATE_ISO8601, strtotime("26th Nov", 1134340285)) . "\n";
9 echo date(DATE_ISO8601, strtotime("Dec. 4th, 2005")) . "\n";
10 echo date(DATE_ISO8601, strtotime("December 4th, 2005")) . "\n";
H A Dstrtotime_variation_scottish.phpt6 var_dump(date('H:i:s', strtotime('back of 7')));
7 var_dump(date('H:i:s', strtotime('front of 7')));
8 var_dump(date('H:i:s', strtotime('back of 19')));
9 var_dump(date('H:i:s', strtotime('front of 19')));
H A DDateTimeZone_getOffset_basic1.phpt7 * Source code: ext/date/php_date.c
17 $date = new DateTime("GMT");
18 var_dump( $tz1->getOffset($date) );
21 var_dump( $tz2->getOffset($date) );
24 var_dump( $tz3->getOffset($date) );
H A Dtimezone_offset_get_basic1.phpt7 * Source code: ext/date/php_date.c
17 $date = date_create("GMT");
19 var_dump(timezone_offset_get($tz, $date));
22 var_dump(timezone_offset_get($tz, $date));
25 var_dump(timezone_offset_get($tz, $date));
H A Dgmstrftime_variation21.phpt2 Test gmstrftime() function : usage variation - Checking Preferred date and time representation on W…
12 * Description: Format a GMT/UCT time/date according to locale settings
13 * Source code: ext/date/php_date.c
26 'Preferred date and time representation' => "%c",
27 'Preferred date representation' => "%x",
44 --Preferred date and time representation--
48 --Preferred date representation--
H A Dgmstrftime_variation22.phpt2 Test gmstrftime() function : usage variation - Checking Preferred date and time representation othe…
15 * Description: Format a GMT/UCT time/date according to locale settings
16 * Source code: ext/date/php_date.c
30 'Preferred date and time representation' => "%c",
31 'Preferred date representation' => "%x",
48 --Preferred date and time representation--
52 --Preferred date representation--
H A Dstrftime_variation22.phpt2 Test strftime() function : usage variation - Checking Preferred date and time representation other …
15 * Description: Format a local time/date according to locale settings
16 * Source code: ext/date/php_date.c
30 'Preferred date and time representation' => "%c",
31 'Preferred date representation' => "%x",
48 --Preferred date and time representation--
52 --Preferred date representation--
H A Dbug46874.phpt7 foreach ($dp as $date) {
8 echo $date->format("Y-m-d H:i:s\n");
14 foreach ($dp as $date) {
15 echo $date->format("Y-m-d H:i:s\n");
H A Dbug32588.phpt4 date.timezone=America/New_York
8 echo date('D Y/m/d/H:i:s', strtotime('last saturday', 1112703348)). "\n";
9 echo date('D Y/m/d/H:i:s', strtotime("last sunday", 1112703348)). "\n";
10 echo date('D Y/m/d/H:i:s', strtotime('last monday', 1112703348)). "\n";
H A Ddate_variation1.phpt2 Test date() function : usage variation - Passing unexpected values to first argument $format.
5 /* Prototype : string date ( string $format [, int $timestamp ] )
6 * Description: Format a local time/date.
7 * Source code: ext/date/php_date.c
101 var_dump( date($format, $timestamp) );
135 Warning: date() expects parameter 1 to be string, array given in %s on line %d
140 Warning: date() expects parameter 1 to be string, array given in %s on line %d
145 Warning: date() expects parameter 1 to be string, array given in %s on line %d
150 Warning: date() expects parameter 1 to be string, array given in %s on line %d
194 Warning: date() expects parameter 1 to be string, object given in %s on line %d
[all …]
H A Ddate_create_variation1.phpt132 ["date"]=>
140 ["date"]=>
154 ["date"]=>
162 ["date"]=>
204 ["date"]=>
212 ["date"]=>
222 ["date"]=>
230 ["date"]=>
244 ["date"]=>
252 ["date"]=>
[all …]
H A Dbug26317.phpt4 date.timezone=GMT0
11 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 16:20:42 Z"));
12 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 09:20:42 T"));
13 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 19:20:42 C"));
/PHP-7.2/ext/calendar/tests/
H A Djdtounix.phpt4 date.timezone=UTC
9 echo date("Y-m-d",jdtounix(2440588)). "\n";
10 echo date("Y-m-d",jdtounix(2452162)). "\n";
11 echo date("Y-m-d",jdtounix(2453926)). "\n";
/PHP-7.2/ext/standard/tests/array/
H A Darray_column_variant.phpt7 456 => array('id' => '3', 'title' => 'Foo', 'date' => '2013-03-25'),
8 457 => array('id' => '5', 'title' => 'Bar', 'date' => '2012-05-20'),
30 ["date"]=>
39 ["date"]=>
51 ["date"]=>
60 ["date"]=>
72 ["date"]=>
81 ["date"]=>
/PHP-7.2/ext/intl/tests/
H A Dmsgfmt_format_intlcalendar_variant4.phpt11 ini_set('date.timezone', 'Europe/Lisbon');
15 $msgf = new MessageFormatter('pt_PT', '{0,date,full} {0,time,h:m:s a V}');
20 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
22 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
H A Dmsgfmt_format_error5.phpt2 MessageFormatter::format() invalid date/time argument
4 date.timezone=Atlantic/Azores
16 {foo,date}
22 Warning: MessageFormatter::format(): msgfmt_format: invalid object type for date/time (only IntlCal…
24 Warning: MessageFormatter::format(): The argument for key 'foo' cannot be used as a date or time in…
H A Dmsgfmt_format_intlcalendar.phpt11 ini_set('date.timezone', 'Europe/Lisbon');
15 $msgf = new MessageFormatter('pt_PT', '{0,date,full} {0,time,h:m:s a V}');
20 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
22 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
H A Dmsgfmt_format_intlcalendar_variant2.phpt11 ini_set('date.timezone', 'Europe/Lisbon');
15 $msgf = new MessageFormatter('pt_PT', '{0,date,full} {0,time,h:m:s a V}');
20 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
22 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",

Completed in 25 milliseconds

12345678910>>...32