Home
last modified time | relevance | path

Searched refs:date_format (Results 1 – 25 of 34) sorted by relevance

12

/php-src/ext/date/tests/
H A Drfc-datetime_and_daylight_saving_time-type1.phpt9 $date_format = 'Y-m-d H:i:s e';
17 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
22 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
27 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
32 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
37 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
42 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
47 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
147 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
152 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
[all …]
H A Drfc-datetime_and_daylight_saving_time-type2.phpt9 $date_format = 'Y-m-d H:i:s T e';
18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
48 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
149 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
154 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
[all …]
H A Ddate_format_basic1.phpt2 Test date_format() function : basic functionality
8 echo "*** Testing date_format() : basic functionality ***\n";
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') );
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") );
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-ba.phpt9 $date_format = 'Y-m-d H:i:s T e';
20 . $start->add($interval)->format($date_format) . "\n";
26 . $start->add($interval)->format($date_format) . "\n";
32 . $start->add($interval)->format($date_format) . "\n";
38 . $start->add($interval)->format($date_format) . "\n";
44 . $start->add($interval)->format($date_format) . "\n";
50 . $start->add($interval)->format($date_format) . "\n";
56 . $start->add($interval)->format($date_format) . "\n";
62 . $start->add($interval)->format($date_format) . "\n";
68 . $start->add($interval)->format($date_format) . "\n";
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-bs.phpt10 $date_format = 'Y-m-d H:i:s T e';
22 . $end->sub($interval)->format($date_format) . "\n";
28 . $end->sub($interval)->format($date_format) . "\n";
34 . $end->sub($interval)->format($date_format) . "\n";
40 . $end->sub($interval)->format($date_format) . "\n";
47 . $end->sub($interval)->format($date_format) . "\n";
54 . $end->sub($interval)->format($date_format) . "\n";
60 . $end->sub($interval)->format($date_format) . "\n";
67 . $end->sub($interval)->format($date_format) . "\n";
73 . $end->sub($interval)->format($date_format) . "\n";
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-fd.phpt9 $date_format = 'Y-m-d H:i:s T e';
18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
48 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
H A Drfc-datetime_and_daylight_saving_time-type3-fs.phpt9 $date_format = 'Y-m-d H:i:s T e';
19 echo 'fs1 ' . $end->format($date_format) . " - $interval_spec = "
20 . $end->sub($interval)->format($date_format) . "\n";
25 echo 'fs2 ' . $end->format($date_format) . " - $interval_spec = "
26 . $end->sub($interval)->format($date_format) . "\n";
31 echo 'fs3 ' . $end->format($date_format) . " - $interval_spec = "
32 . $end->sub($interval)->format($date_format) . "\n";
38 . $end->sub($interval)->format($date_format) . "\n";
44 . $end->sub($interval)->format($date_format) . "\n";
50 . $end->sub($interval)->format($date_format) . "\n";
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-fa.phpt9 $date_format = 'Y-m-d H:i:s T e';
19 echo 'fa1 ' . $start->format($date_format) . " + $interval_spec = "
20 . $start->add($interval)->format($date_format) . "\n";
25 echo 'fa2 ' . $start->format($date_format) . " + $interval_spec = "
26 . $start->add($interval)->format($date_format) . "\n";
32 . $start->add($interval)->format($date_format) . "\n";
37 echo 'fa3 ' . $start->format($date_format) . " + $interval_spec = "
38 . $start->add($interval)->format($date_format) . "\n";
44 . $start->add($interval)->format($date_format) . "\n";
50 . $start->add($interval)->format($date_format) . "\n";
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-bd1.phpt9 $date_format = 'Y-m-d H:i:s T e';
18 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
23 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
28 echo 'bd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
33 echo 'bd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
38 echo 'bd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
H A Drfc-datetime_and_daylight_saving_time-type3-bd2.phpt9 $date_format = 'Y-m-d H:i:s T e';
27 echo 'bd0 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
33 echo 'bd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
39 echo 'bd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
45 echo 'bd8a ' . $end->format($date_format) . ' - ' . $start->format($date_format)
51 echo 'bd8b ' . $end->format($date_format) . ' - ' . $start->format($date_format)
H A Ddate_time_set_basic1.phpt13 echo "Initial date: " . date_format($datetime, DATE_RFC2822) . "\n";
16 echo "After modification1 " . date_format($datetime, DATE_RFC2822) . "\n";
19 echo "After modification2 " . date_format($datetime, DATE_RFC2822) . "\n";
22 echo "After modification3 " . date_format($datetime, DATE_RFC2822) . "\n";
25 echo "After modification4 " . date_format($datetime, DATE_RFC2822) . "\n";
28 echo "After modification5 " . date_format($datetime, DATE_RFC2822) . "\n";
H A Ddate_format_timezone.phpt2 Test date_format() function : timezone offset
14 var_dump( date_format($date, "O") );
15 var_dump( date_format($date, "P") );
16 var_dump( date_format($date, "p") );
22 var_dump( date_format($date, "p") );
H A Ddate_modify-1.phpt7 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
9 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
13 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
15 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
18 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
20 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
H A Dbug52577.phpt8 $date_format = DATE_RFC2822;
11 echo "Date(PHP): ".date($date_format,$unixtime)."\n";
13 echo "DateTime(PHP Class): ".$date->format($date_format);
H A Ddate_modify_basic1.phpt14 echo "After modification 1: " . date_format($datetime, "D, d M Y") . "\n";
17 echo "After modification 2: " . date_format($datetime, "D, d M Y H:i:s") . "\n";
20 echo "After modification 3: " . date_format($datetime, "D, d M Y") . "\n";
23 echo "After modification 4: " . date_format($datetime, "D, d M Y") . "\n";
H A Ddate_isodate_set_basic1.phpt15 echo "Week 40 of 2009 is in \"" . date_format($datetime, "F") . "\"\n";
19 echo "Week 30 day 3 of 2009 is \"" . date_format($datetime, "D M j") . "\"\n";
23 echo "..same day last year was \"" . date_format($datetime, "D M j") . "\"\n";
H A Ddate_modify-2.phpt7 echo date_format($d, 'D, d M Y H:i:s T'), "\n";
9 echo date_format($d, 'D, d M Y H:i:s T'), "\n";
H A Ddate_date_set_basic1.phpt12 echo date_format($datetime, DATE_RFC2822) . "\n";
16 echo date_format($datetime, DATE_RFC2822) . "\n";
H A DDateTime_format_basic2.phpt2 Test date_format() function : basic functionality
8 echo "*** Testing date_format() : basic functionality - formatting constants ***\n";
28 *** Testing date_format() : basic functionality - formatting constants ***
H A Dbug49585.phpt2 Bug #49585 (date_format buffer not long enough for >4 digit years)
H A Ddate_timestamp_set.phpt16 var_dump(date_format($dtms021, 'B => (U) => T Y-M-d H:i:s'));
H A Dbug48058.phpt14 echo date_format( $dt, DATE_ISO8601 );
H A Dcall_function_from_method.phpt16 return date_format($this->date, 'Y');
H A Dbug42910.phpt23 var_dump(date_format($date, 'O e'));
/php-src/ext/opcache/tests/
H A Djmp_elim_002.phpt26 $archive_day_date_format = get_option( 'date_format' );

Completed in 19 milliseconds

12