/PHP-8.2/ext/date/tests/ |
H A D | bug62896.phpt | 4 date.timezone=Europe/Berlin 12 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 14 $date->modify('+0 days'); 15 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 20 $date->setTimezone($tz); 21 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 23 $date->modify('+0 days'); 24 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 29 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n"; 31 $date->modify('+0 days'); [all …]
|
H A D | bug45866.phpt | 4 date.timezone=UTC 7 $date = new DateTime( '2009-07-29 16:44:23 Europe/London' ); 8 $date->modify( "+1.61538461538 day" ); 9 echo $date->format( 'r' ), "\n"; 11 $date = new DateTime( '2009-07-29 16:44:23 Europe/London' ); 12 $date->modify( "61538461538 day" ); 13 echo $date->format( 'r' ), "\n"; 15 $date = new DateTime( '2009-07-29 16:44:23 Europe/London' ); 16 $date->modify( "£61538461538 day" ); 17 echo $date->format( 'r' ), "\n";
|
H A D | date-lenient-create.phpt | 2 Test for + character in date format 6 $date = "06/08/04 12:00"; 8 print_r( date_create_from_format( 'm/d/y', $date , $tz) ); 11 print_r( date_create_from_format( 'm/d/y+', $date , $tz)->setTime(0, 0) ); 14 print_r( date_create_from_format( '+m/d/y', $date , $tz)->setTime(0, 0) ); 21 $date = "06/08/04"; 49 [date] => 2004-06-08 00:00:00.000000 70 [date] => 2004-06-08 00:00:00.000000 91 [date] => 2004-06-08 00:00:00.000000 112 [date] => 2004-06-08 00:00:00.000000 [all …]
|
H A D | 004.phpt | 2 date() format params 13 var_dump(date("w", $t)); 14 var_dump(date("z", $t)); 15 var_dump(date("n", $t)); 16 var_dump(date("t", $t)); 17 var_dump(date("L", $t)); 18 var_dump(date("a", $t)); 19 var_dump(date("B", $t)); 20 var_dump(date("g", $t)); 21 var_dump(date("G", $t)); [all …]
|
H A D | DateTime_format_basic2.phpt | 9 $date = new DateTime("2005-07-14 22:30:41"); 11 var_dump( $date->format( DateTime::ATOM) ) ; 12 var_dump( $date->format( DateTime::COOKIE) ) ; 13 var_dump( $date->format( DateTime::ISO8601) ) ; 14 var_dump( $date->format( DateTime::RFC822) ) ; 15 var_dump( $date->format( DateTime::RFC850) ) ; 16 var_dump( $date->format( DateTime::RFC1036) ) ; 17 var_dump( $date->format( DateTime::RFC1123) ) ; 19 var_dump( $date->format( DateTime::RFC3339) ) ; 20 var_dump( $date->format( DateTime::RSS) ) ; [all …]
|
H A D | ini_set_incorrect-002.phpt | 4 date.timezone=UTC 7 echo ini_get("date.timezone"), "\n"; 9 ini_set("date.timezone", "foo"); 10 echo ini_get("date.timezone"), "\n"; 12 ini_set("date.timezone", "Europe/London"); 13 echo ini_get("date.timezone"), "\n"; 15 ini_set("date.timezone", "Mars/Valles_Marineris"); 16 echo ini_get("date.timezone"), "\n"; 21 Warning: ini_set(): Invalid date.timezone value 'foo', using 'UTC' instead in %sini_set_incorrect-0… 25 Warning: ini_set(): Invalid date.timezone value 'Mars/Valles_Marineris', using 'Europe/London' inst…
|
H A D | date_basic1.phpt | 2 Test date() function : basic functionality 8 echo "*** Testing date() : basic functionality ***\n"; 12 var_dump( date("F j, Y, g:i a", $timestamp) ); 13 var_dump( date("m.d.y", $timestamp) ); 14 var_dump( date("j, n, Y", $timestamp) ); 15 var_dump( date("Ymd", $timestamp) ); 16 var_dump( date('h-i-s, j-m-y, it is w Day', $timestamp) ); 18 var_dump( date("D M j G:i:s T Y", $timestamp) ); 19 var_dump( date('H:m:s \m \i\s\ \m\o\n\t\h', $timestamp) ); 20 var_dump( date("H:i:s", $timestamp) ); [all …]
|
H A D | gh7758.phpt | 8 $date = new DateTime('@' . $ts); 9 print_r($date); 15 [date] => 1970-01-01 00:00:00.400000 21 [date] => 1970-01-01 00:00:00.000000 27 [date] => 1969-12-31 23:59:59.600000 33 [date] => 1969-12-31 23:59:59.000000 39 [date] => 1969-12-31 23:59:58.600000
|
H A D | forward-transition-construction.phpt | 7 $date = new DateTime('2010-03-14 01:30:00'); 8 echo $date->format('Y-m-d H:i:s T/e - U') . "\n"; 10 $date = new DateTime('2010-03-14 02:00:00'); 11 echo $date->format('Y-m-d H:i:s T/e - U') . "\n"; 13 $date = new DateTime('2010-03-14 02:30:00'); 14 echo $date->format('Y-m-d H:i:s T/e - U') . "\n"; 16 $date = new DateTime('2010-03-14 03:00:00'); 17 echo $date->format('Y-m-d H:i:s T/e - U') . "\n"; 19 $date = new DateTime('2010-03-14 03:30:00'); 20 echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
|
H A D | bug52577.phpt | 2 Bug #52577 (Incorrect date returning) 6 $date = '7.8.2010'; 7 echo "String: ".$date."\n"; 9 $unixtime = strtotime($date); 11 echo "Date(PHP): ".date($date_format,$unixtime)."\n"; 12 $date = new DateTime('@'.$unixtime); 13 echo "DateTime(PHP Class): ".$date->format($date_format);
|
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 | date_format_basic1.phpt | 9 $date = date_create("2005-07-14 22:30:41"); 11 var_dump( date_format($date, "F j, Y, g:i a") ); 12 var_dump( date_format($date, "m.d.y") ); 13 var_dump( date_format($date, "j, n, Y") ); 14 var_dump( date_format($date, "Ymd") ); 15 var_dump( date_format($date, 'h-i-s, j-m-y, it is w Day') ); 16 var_dump( date_format($date, '\i\t \i\s \t\h\e jS \d\a\y.') ); 17 var_dump( date_format($date, "D M j G:i:s T Y") ); 18 var_dump( date_format($date, 'H:m:s \m \i\s\ \m\o\n\t\h') ); 19 var_dump( date_format($date, "H:i:s") );
|
H A D | bug41844.phpt | 7 $date = new DateTime('2007-06-28'); 8 $date->modify('-3006 years'); 9 echo $date->format(DATE_ISO8601), "\n"; 11 $date = new DateTime('2007-06-28'); 12 $date->modify('-2008 years'); 13 echo $date->format(DATE_ISO8601), "\n";
|
H A D | call_function_from_method.phpt | 2 Call to date function from a method and call to date method from call_user_func 4 date.timezone=UTC 9 public $date; 12 $this->date = date_create($in); 16 return date_format($this->date, 'Y'); 20 return call_user_func([$this->date, 'format'], 'Y');
|
H A D | bug71525.phpt | 4 date.timezone=UTC 7 $date = new DateTime('2011-12-25 00:00:00'); 8 $date->modify('first day of next month'); 9 $date->setDate('2012', '1', '29'); 10 var_dump($date); 14 ["date"]=>
|
H A D | DateTime_format_basic1.phpt | 9 $date = new DateTime("2005-07-14 22:30:41"); 11 var_dump( $date->format( "F j, Y, g:i a") ); 12 var_dump( $date->format( "m.d.y") ); 13 var_dump( $date->format( "j, n, Y") ); 14 var_dump( $date->format( "Ymd") ); 15 var_dump( $date->format( 'h-i-s, j-m-y, it is w Day') ); 16 var_dump( $date->format( '\i\t \i\s \t\h\e jS \d\a\y.') ); 17 var_dump( $date->format( "D M j G:i:s T Y") ); 18 var_dump( $date->format( 'H:m:s \m \i\s\ \m\o\n\t\h') ); 19 var_dump( $date->format( "H:i:s") );
|
H A D | bug43452.phpt | 9 echo date( DateTime::ISO8601, $day ), "\n"; 11 echo date( DateTime::ISO8601, $day ), "\n"; 13 echo date( DateTime::ISO8601, $day ), "\n"; 15 echo date( DateTime::ISO8601, $day ), "\n\n"; 19 echo date( DateTime::ISO8601, $day ), "\n"; 21 echo date( DateTime::ISO8601, $day ), "\n"; 23 echo date( DateTime::ISO8601, $day ), "\n"; 31 echo date( DateTime::ISO8601, $day ), "\n"; 33 echo date( DateTime::ISO8601, $day ), "\n"; 35 echo date( DateTime::ISO8601, $day ), "\n"; [all …]
|
H A D | bug33578.phpt | 6 echo date('m/d/Y', strtotime('Oct 11')), "\n"; 7 echo date('m/d/Y', strtotime('11 Oct')), "\n"; 8 echo date('m/d/Y', strtotime('11 Oct 2005')), "\n"; 9 echo date('m/d/Y', strtotime('Oct11')), "\n"; 10 echo date('m/d/Y', strtotime('11Oct')), "\n"; 11 echo date('m/d/Y', strtotime('11Oct 2005')), "\n"; 12 echo date('m/d/Y', strtotime('11Oct2005')), "\n";
|
H A D | bug79396-forward-transition-settime.phpt | 7 $date = new DateTime('2020-03-08 01:30:00'); 8 echo $date->setTime(2, 0)->format('Y-m-d H:i:s T/e - U') . "\n"; 10 $date = new DateTime('2020-03-08 01:30:00'); 11 echo $date->setTime(2, 30)->format('Y-m-d H:i:s T/e - U') . "\n"; 13 $date = new DateTime('2020-03-08 01:30:00'); 14 echo $date->setTime(3, 0)->format('Y-m-d H:i:s T/e - U') . "\n"; 16 $date = new DateTime('2020-03-08 01:30:00'); 17 echo $date->setTime(1, 59, 59)->format('Y-m-d H:i:s T/e - U') . "\n";
|
H A D | bug32086.phpt | 4 date.timezone=America/Sao_Paulo 13 echo date("Y-m-d H:i:s T\n", $g); 14 echo date("Y-m-d H:i:s T\n", $i); 15 echo date("Y-m-d H:i:s T\n", $j); 16 echo date("Y-m-d H:i:s T\n", $k); 17 echo date("Y-m-d H:i:s T\n", $l); 24 echo date("Y-m-d H:i:s T\n", $g); 25 echo date("Y-m-d H:i:s T\n", $i); 26 echo date("Y-m-d H:i:s T\n", $j); 27 echo date("Y-m-d H:i:s T\n", $k); [all …]
|
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 | 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
|
/PHP-8.2/ext/reflection/tests/ |
H A D | 026.phpt | 9 $r = new ReflectionExtension("date"); 19 date 21 date/time support => enabled 28 date.timezone => %s => %s 29 date.default_latitude => %s => %s 30 date.default_longitude => %s => %s 31 date.sunset_zenith => %s => %s 32 date.sunrise_zenith => %s => %s
|
/PHP-8.2/ext/soap/tests/schema/ |
H A D | schema064.phpt | 20 <element name="date" type="date"/> 29 $date = gmmktime(1,2,3,4,5,1976); 32 'dateTime' => $date, 33 'time' => $date, 34 'date' => $date, 35 'gYearMonth' => $date, 36 'gYear' => $date, 37 'gMonthDay' => $date, 38 'gDay' => $date, 39 'gMonth' => $date [all …]
|
/PHP-8.2/ext/intl/tests/ |
H A D | bug58756_MessageFormatter.phpt | 17 ini_set('date.timezone', 'America/New_York'); 19 $msgf = new MessageFormatter('en_US', '{0,date,full} {0,time,h:m:s a V}'); 21 echo "date: " . date('l, F j, Y g:i:s A T', $time) . "\n"; 26 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}'); 28 echo "msgf2: ", $msgf->format(array($time, 'date')), " ", 34 date: Tuesday, July 7, 2009 8:41:13 PM EDT
|