/php-src/ext/date/tests/ |
H A D | bug69336.phpt | 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 tuesday of march 2015'))); 9 var_dump(date('d.m.Y',strtotime('last wednesday of march 2015'))); 10 var_dump(date('d.m.Y',strtotime('last wednesday of april 2015'))); 11 var_dump(date('d.m.Y',strtotime('last wednesday of march 2014'))); 12 var_dump(date('d.m.Y',strtotime('last wednesday of april 2014')));
|
H A D | createFromTimestamp.phpt | 63 ["date"]=> 71 ["date"]=> 79 ["date"]=> 87 ["date"]=> 95 ["date"]=> 103 ["date"]=> 111 ["date"]=> 119 ["date"]=> 127 ["date"]=> 135 ["date"]=> [all …]
|
H A D | bug74057.phpt | 5 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Sun 2017-01-01")))."\n"; 6 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Mon 2017-01-02")))."\n"; 7 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Tue 2017-01-03")))."\n"; 8 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Wed 2017-01-04")))."\n"; 9 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Thu 2017-01-05")))."\n"; 10 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Fri 2017-01-06")))."\n"; 11 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Sat 2017-01-07")))."\n"; 12 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Sun 2017-01-08")))."\n"; 13 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Mon 2017-01-09")))."\n";
|
H A D | bug53879.phpt | 2 Bug #53879 (DateTime::createFromFormat() fails to parse cookie expiration date) 4 date.timezone=UTC 7 $date = DateTime::createFromFormat(DateTime::COOKIE, "Mon, 21-Jan-2041 15:24:52 GMT"); 8 print_r($date); 13 [date] => 2041-01-21 15:24:52.000000
|
H A D | 002.phpt | 36 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 D | date-lenient.phpt | 2 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 D | bug75232.phpt | 4 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 D | bug49585.phpt | 7 $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 D | bug50475.phpt | 7 $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 D | DatePeriod_IteratorAggregate.phpt | 7 foreach ($period as $i => $date) { 8 echo "$i: ", $date->format('Y-m-d'), "\n"; 12 foreach ($period->getIterator() as $i => $date) { 13 echo "$i: ", $date->format('Y-m-d'), "\n"; 20 $date = $iter->current(); 21 echo "$i: ", $date->format('Y-m-d'), "\n"; 28 $date = $iter->current(); 29 echo "$i: ", $date->format('Y-m-d'), "\n"; 34 echo "$i: ", $date->format('Y-m-d'), "\n"; 43 foreach ($period as $i => $date) { [all …]
|
H A D | bug33869.phpt | 7 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 D | bug30532.phpt | 4 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 D | bug73942.phpt | 2 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 D | DateTime_serialization.phpt | 27 'date' => '2022-04-14 11:27:42.541106', 37 'date' => '2022-04-14 11:27:42.541106', 45 'date' => '2022-04-14 11:27:42.541106', 56 ["date"]=> 66 string(125) "O:8:"DateTime":3:{s:4:"date";s:26:"2022-04-14 11:27:42.000000";s:13:"timezone_type";i:… 71 ["date"]=> 82 ["date"]=> 93 ["date"]=> 104 ["date"]=> 112 ["date"]=>
|
H A D | DateTimeImmutable_serialization.phpt | 27 'date' => '2022-04-14 11:27:42.541106', 37 'date' => '2022-04-14 11:27:42.541106', 45 'date' => '2022-04-14 11:27:42.541106', 56 ["date"]=> 66 string(135) "O:17:"DateTimeImmutable":3:{s:4:"date";s:26:"2022-04-14 11:27:42.000000";s:13:"timezon… 71 ["date"]=> 82 ["date"]=> 93 ["date"]=> 104 ["date"]=> 112 ["date"]=>
|
H A D | bug37514.phpt | 6 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 D | date_format_timezone.phpt | 12 $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 D | bug44742.phpt | 19 foreach ($dates as $date) 21 $date = date_create($date); 22 var_dump(timezone_offset_get(date_timezone_get($date), $date));
|
H A D | bug33957.phpt | 2 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 D | bug73426.phpt | 4 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 D | date_default_timezone_set-1.phpt | 8 date.timezone= 19 echo date(DATE_ISO8601, $date1), "\n"; 20 echo date(DATE_ISO8601, $date2), "\n"; 21 echo date(DATE_ISO8601, $date3), "\n"; 22 echo date(DATE_ISO8601, $date4), "\n"; 25 Warning: PHP Startup: Invalid date.timezone value '', using 'UTC' instead in %s on line %d
|
H A D | bug74080.phpt | 2 Bug #74080 Provide an RFC7231 date time format 6 $date = mktime(17, 52, 13, 4, 30, 2016); 7 var_dump(date(\DateTime::RFC7231, $date));
|
/php-src/ext/soap/tests/schema/ |
H A D | schema086.phpt | 14 <element name="date" type="date"/> 32 'dateTime' => $date, 33 'time' => $date, 34 'date' => $date, 36 'gYear' => $date, 37 'gMonthDay' => $date, 38 'gDay' => $date, 39 'gMonth' => $date 52 ["date"]=> 72 ["date"]=> [all …]
|
/php-src/ext/intl/tests/ |
H A D | bug58756_MessageFormatter_variant2.phpt | 22 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-src/ext/calendar/tests/ |
H A D | easter_date_64bit.phpt | 6 date.timezone=UTC 14 echo date("Y-m-d", easter_date(2000))."\n"; 15 echo date("Y-m-d", easter_date(2001))."\n"; 16 echo date("Y-m-d", easter_date(2002))."\n"; 17 echo date("Y-m-d", easter_date(2045))."\n"; 18 echo date("Y-m-d", easter_date(2046))."\n"; 19 echo date("Y-m-d", easter_date(2047))."\n";
|