Home
last modified time | relevance | path

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

12345678910>>...22

/PHP-8.0/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 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' );
16 $date->modify( "£61538461538 day" );
17 echo $date->format( 'r' ), "\n";
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 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 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 Dbug80409.phpt4 date.timezone=UTC
7 $date = '2020-11-27 12:33:00';
9 echo date('Y-m-d H:i:s', strtotime($date.' +1 day')), "\n";
10 echo date('Y-m-d H:i:s', strtotime($date.' +1 Weekday')), "\n";
12 $date1 = new DateTime($date);
13 $date2 = new DateTime($date);
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 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 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 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 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 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 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 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 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 …]
H A Dbug53879.phpt2 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 Dbug69336.phpt4 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 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
10 $this->date = date_create($in);
14 return date_format($this->date, 'Y');
18 return call_user_func([$this->date, 'format'], 'Y');
H A Dbug74057.phpt5 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";
/PHP-8.0/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.0/ext/soap/tests/schema/
H A Dschema064.phpt17 <element name="date" type="date"/>
26 $date = gmmktime(1,2,3,4,5,1976);
29 'dateTime' => $date,
30 'time' => $date,
31 'date' => $date,
32 'gYearMonth' => $date,
33 'gYear' => $date,
34 'gMonthDay' => $date,
35 'gDay' => $date,
36 'gMonth' => $date
[all …]
/PHP-8.0/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 33 milliseconds

12345678910>>...22