Home
last modified time | relevance | path

Searched refs:date (Results 26 – 50 of 583) sorted by relevance

12345678910>>...24

/PHP-8.1/ext/intl/tests/
H A Dbug58756_MessageFormatter_variant2.phpt22 ini_set('date.timezone', 'America/New_York');
24 $msgf = new MessageFormatter('en_US', '{0,date,full} {0,time,h:m:s a V}');
26 echo "date: " . date('l, F j, Y g:i:s A T', $time) . "\n";
31 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
33 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
39 date: Tuesday, July 7, 2009 8:41:13 PM EDT
/PHP-8.1/ext/date/tests/
H A D002.phpt36 foreach ($dates as $date) {
37 echo date ("Y-m-d H:i:s\n", strtotime ($date));
42 if( date("T") == "GMT" ) {
47 foreach ($dates as $date) {
48 echo date ("Y-m-d H:i:s\n", strtotime ($date));
H A Dtest-parse-from-format.phpt27 ["date"]=>
38 ["date"]=>
49 ["date"]=>
60 ["date"]=>
71 ["date"]=>
82 ["date"]=>
93 ["date"]=>
104 ["date"]=>
115 ["date"]=>
126 ["date"]=>
[all …]
H A Dbug75232.phpt4 date.timezone=UTC
9 echo $d1->date, "\n";
13 echo $d2->date, "\n";
17 Warning: Undefined property: DateTime::$date in %s on line %d
21 [date] => 2017-09-20 09:16:00.000000
26 Warning: Undefined property: DateTime::$date in %s on line %d
H A Ddate-lenient.phpt2 Test for + character in date format
5 $date = "06/08/04 12:00";
6 print_r( date_parse_from_format( 'm/d/y', $date ) );
7 print_r( date_parse_from_format( 'm/d/y+', $date ) );
8 print_r( date_parse_from_format( '+m/d/y', $date ) );
9 print_r( date_parse_from_format( 'm/d/y++', $date ) );
11 $date = "06/08/04";
12 print_r( date_parse_from_format( 'm/d/y+', $date ) );
13 print_r( date_parse_from_format( '+m/d/y', $date ) );
H A Dbug50475.phpt7 $date = new DateTime('18-01-2009 00:00:00');
9 $date->setISODate(2009, 6, 1);
11 var_dump($date->format('Y-m-d H:i:s'));
13 $date->setTime(8, 0);
14 var_dump($date->format('Y-m-d H:i:s'));
H A Dbug49585.phpt7 $date = new DateTime('-1500-01-01');
8 var_dump($date->format('r'));
10 $date->setDate(-2147483648, 1, 1);
11 var_dump($date->format('r'));
12 var_dump($date->format('c'));
H A Dbug33869.phpt7 echo date(DATE_ISO8601, strtotime('+5days', $tm));
9 echo date(DATE_ISO8601, strtotime('+1month', $tm));
11 echo date(DATE_ISO8601, strtotime('+1year', $tm));
13 echo date(DATE_ISO8601, strtotime('+5 days', $tm));
15 echo date(DATE_ISO8601, strtotime('+1 month', $tm));
17 echo date(DATE_ISO8601, strtotime('+1 year', $tm));
H A Dbug30532.phpt4 date.timezone=America/New_York
8 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n";
9 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +2 hours'))."\n";
10 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +3 hours'))."\n";
14 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n";
15 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +2 hours'))."\n";
16 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +3 hours'))."\n";
H A Dbug73942.phpt2 Bug #73942: $date->modify('Friday this week') doesn't return a Friday if $date is a Sunday
6 $date = new \DateTime($date1);
7 $date->modify('Friday this week');
8 $dateFormat = $date->format('Y-m-d');
H A Dbug37514.phpt6 echo date('r', strtotime('May 18th 5:05', 1168156376)), "\n";
7 echo date('r', strtotime('May 18th 5:05pm', 1168156376)), "\n";
8 echo date('r', strtotime('May 18th 5:05 pm', 1168156376)), "\n";
9 echo date('r', strtotime('May 18th 5:05am', 1168156376)), "\n";
10 echo date('r', strtotime('May 18th 5:05 am', 1168156376)), "\n";
11 echo date('r', strtotime('May 18th 2006 5:05pm', 1168156376)), "\n";
H A Ddate_format_timezone.phpt12 $date = date_create("2020-03-10 22:30:41");
14 var_dump( date_format($date, "O") );
15 var_dump( date_format($date, "P") );
16 var_dump( date_format($date, "p") );
20 $date = date_create("2020-03-10 22:30:41Z");
22 var_dump( date_format($date, "p") );
H A Dbug44742.phpt19 foreach ($dates as $date)
21 $date = date_create($date);
22 var_dump(timezone_offset_get(date_timezone_get($date), $date));
H A Dbug33957.phpt2 Bug #33957 (gmdate('W')/date('W') sometimes returns wrong week number)
8 echo "1992-12-$i ", date("W", strtotime("1992-12-$i")), "\n";
11 echo "1993-01-$i ", date("W", strtotime("1993-01-$i")), "\n";
23 echo sprintf(" %02d-", date("W", strtotime("$year-12-$i")));
24 echo sprintf("%04d ", date("o", strtotime("$year-12-$i")));
31 echo sprintf(" %02d-", date("W", strtotime("$year-1-$i")));
32 echo sprintf("%04d ", date("o", strtotime("$year-1-$i")));
H A Dbug73426.phpt4 date.timezone=UTC
7 $date = '2016 12:00:00 15';
9 var_dump(DateTime::createFromFormat($format, $date));
11 $date = '16 12:00:00 2016';
13 var_dump(DateTime::createFromFormat($format, $date));
18 ["date"]=>
H A Dbug74080.phpt2 Bug #74080 Provide an RFC7231 date time format
6 $date = mktime(17, 52, 13, 4, 30, 2016);
7 var_dump(date(\DateTime::RFC7231, $date));
H A Dbug32555.phpt4 date.timezone=US/Eastern
8 print date('r', strtotime('now',$stamp)) ."\n";
9 print date('r', strtotime('tomorrow',$stamp)) ."\n";
10 print date('r', strtotime('+1 day',$stamp)) ."\n";
11 print date('r', strtotime('+2 day',$stamp)) ."\n";
H A Dbug67109.phpt2 Bug #67109 (First uppercase letter breaks date string parsing)
4 date.timezone=UTC
7 var_dump(date('d.m.Y',strtotime('last day of april')));
8 var_dump(date('d.m.Y',strtotime('Last day of april')));
9 var_dump(date('d.m.Y',strtotime('lAst Day of April')));
H A DDateTimeImmutable_createFromInterface-001.phpt4 date.timezone=Europe/London
33 ["date"]=>
41 ["date"]=>
49 ["date"]=>
57 ["date"]=>
65 ["date"]=>
73 ["date"]=>
H A DDateTime_createFromInterface-001.phpt4 date.timezone=Europe/London
33 ["date"]=>
41 ["date"]=>
49 ["date"]=>
57 ["date"]=>
65 ["date"]=>
73 ["date"]=>
H A Dbug32270.phpt2 Bug #32270 (strtotime/date behavior)
4 date.timezone=America/Los_Angeles
8 echo date("m/d/Y H:i:s T", -2145888000)."\n";
12 echo date("m/d/Y H:i:s T", -631123200)."\n";
16 echo date("m/d/Y H:i:s T", 946713600)."\n";
H A Dbug34087.phpt2 Bug #34087 (strtotime() does not work with date format "Y/m/d")
9 echo date(DATE_ISO8601, strtotime("2005/1/2")), "\n";
10 echo date(DATE_ISO8601, strtotime("2005/01/02")), "\n";
11 echo date(DATE_ISO8601, strtotime("2005/01/2")), "\n";
12 echo date(DATE_ISO8601, strtotime("2005/1/02")), "\n";
H A Dbug33414-1.phpt4 date.timezone=America/Mendoza
10 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
18 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
26 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
34 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
43 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
51 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
59 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
67 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
75 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
[all …]
H A Dmktime-1.phpt12 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2000)) ."\n";
13 echo date("Y-m-d", mktime( 12, 0, 0, 3, -1, 2000)) ."\n";
14 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2000)) ."\n";
15 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2001)) ."\n";
16 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2001)) ."\n";
17 echo date("Y-m-d", mktime( 12, 0, 0, 0, 0, 2000)) ."\n";
H A DDateTimeImmutable_createFromInterface-002.phpt4 date.timezone=Europe/London
35 ["date"]=>
43 ["date"]=>
51 ["date"]=>
59 ["date"]=>
67 ["date"]=>
75 ["date"]=>

Completed in 28 milliseconds

12345678910>>...24