Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 628) sorted by relevance

12345678910>>...26

/PHP-8.3/ext/date/tests/
H A Dbug62896.phpt4 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 Ddate-lenient-create.phpt2 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 D004.phpt2 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 DDateTime_format_basic2.phpt9 $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 Dini_set_incorrect-002.phpt4 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 Dbug45866.phpt4 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' );
17 $date->modify( "£61538461538 day" );
21 echo $date->format( 'r' ), "\n";
H A Ddate_basic1.phpt2 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 Dgh7758.phpt8 $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 Dforward-transition-construction.phpt7 $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 Dbug52577.phpt2 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 DDatePeriod_IteratorAggregate.phpt7 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 DDateTimeImmutable_set_state_exception.phpt6 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 1, 'timezone' => "+02:30" ],
7 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 3, 'timezone' => "Europe/Kyiv" ],
8 [ 'date' => 2023.113, 'timezone_type' => 1, 'timezone' => "+02:30" ],
9 [ 'date' => 2023.113, 'timezone_type' => 3, 'timezone' => "Europe/Kyiv" ],
10 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 1.4, 'timezone' => "+02:30" ],
11 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 3.4, 'timezone' => "Europe/Kyiv" ],
12 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 1, 'timezone' => 2.5 ],
13 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 3, 'timezone' => 2.5 ],
14 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 3, 'timezone' => "Europe/Lviv" ],
15 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 4, 'timezone' => "Europe/Kyiv" ],
H A DDateTime_set_state_exception.phpt7 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 1, 'timezone' => "+02:30" ],
8 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 3, 'timezone' => "Europe/Kyiv" ],
10 [ 'date' => 2023.113, 'timezone_type' => 1, 'timezone' => "+02:30" ],
11 [ 'date' => 2023.113, 'timezone_type' => 3, 'timezone' => "Europe/Kyiv" ],
12 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 1.4, 'timezone' => "+02:30" ],
13 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 3.4, 'timezone' => "Europe/Kyiv" ],
14 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 1, 'timezone' => 2.5 ],
15 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 3, 'timezone' => 2.5 ],
16 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 3, 'timezone' => "Europe/Lviv" ],
17 [ 'date' => "2023-01-13 12:29:30", 'timezone_type' => 4, 'timezone' => "Europe/Kyiv" ],
H A Ddate_format_basic1.phpt9 $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 Dbug41844.phpt7 $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 Dcall_function_from_method.phpt2 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 Dbug71525.phpt4 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 DDateTime_format_basic1.phpt9 $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 Dbug43452.phpt9 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 Dbug33578.phpt6 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 Dbug79396-forward-transition-settime.phpt7 $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 Dbug32086.phpt4 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 …]
/PHP-8.3/ext/reflection/tests/
H A D026.phpt9 $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.3/ext/soap/tests/schema/
H A Dschema064.phpt20 <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.3/ext/intl/tests/
H A Dbug58756_MessageFormatter.phpt17 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

Completed in 26 milliseconds

12345678910>>...26