/PHP-5.5/ |
H A D | NEWS | 5390 - Fixed bug #49585 (date_format buffer not long enough for >4 digit years).
|
/PHP-5.5/ext/date/ |
H A D | php_date.c | 414 PHP_FE(date_format, arginfo_date_format) 469 PHP_ME_MAPPING(format, date_format, arginfo_date_method_format, 0) 491 PHP_ME_MAPPING(format, date_format, arginfo_date_method_format, 0) 1059 static char *date_format(char *format, int format_len, timelib_time *t, int localtime) in date_format() function 1255 string = date_format(format, format_len, t, localtime); in php_format_date() 2226 ZVAL_STRING(zv, date_format("Y-m-d H:i:s.u", 14, dateobj->time, 1), 0); in date_object_get_properties() 3044 PHP_FUNCTION(date_format) in PHP_FUNCTION() argument 3056 RETURN_STRING(date_format(format, format_len, dateobj->time, dateobj->time->is_localtime), 0); in PHP_FUNCTION()
|
H A D | php_date.h | 60 PHP_FUNCTION(date_format);
|
/PHP-5.5/ext/date/tests/ |
H A D | DateTime_format_basic1.phpt | 8 * Alias to functions: date_format
|
H A D | DateTime_format_basic2.phpt | 2 Test date_format() function : basic functionality 8 * Alias to functions: date_format 14 echo "*** Testing date_format() : basic functionality - formatting coinstants ***\n"; 32 *** Testing date_format() : basic functionality - formatting coinstants ***
|
H A D | DateTime_format_error.phpt | 8 * Alias to functions: date_format
|
H A D | DateTime_format_variation1.phpt | 8 * Alias to functions: date_format
|
H A D | bug42910.phpt | 23 var_dump(date_format($date, 'O e'));
|
H A D | bug48058.phpt | 14 echo date_format( $dt, DATE_ISO8601 );
|
H A D | bug49585.phpt | 2 Bug #49585 (date_format buffer not long enough for >4 digit years)
|
H A D | bug52577.phpt | 8 $date_format = DATE_RFC2822; 11 echo "Date(PHP): ".date($date_format,$unixtime)."\n"; 13 echo "DateTime(PHP Class): ".$date->format($date_format);
|
H A D | date_create-relative.phpt | 48 echo "$direction$offset: " . date_format($dt, DATE_ISO8601) . "\n";
|
H A D | date_date_set_basic1.phpt | 18 echo date_format($datetime, DATE_RFC2822) . "\n"; 22 echo date_format($datetime, DATE_RFC2822) . "\n";
|
H A D | date_format_basic1.phpt | 2 Test date_format() function : basic functionality 14 echo "*** Testing date_format() : basic functionality ***\n"; 17 var_dump( date_format($date, "F j, Y, g:i a") ); 18 var_dump( date_format($date, "m.d.y") ); 19 var_dump( date_format($date, "j, n, Y") ); 20 var_dump( date_format($date, "Ymd") ); 21 var_dump( date_format($date, 'h-i-s, j-m-y, it is w Day') ); 22 var_dump( date_format($date, '\i\t \i\s \t\h\e jS \d\a\y.') ); 23 var_dump( date_format($date, "D M j G:i:s T Y") ); 24 var_dump( date_format($date, 'H:m:s \m \i\s\ \m\o\n\t\h') ); [all …]
|
H A D | date_format_error.phpt | 2 Test date_format() function : error conditions 5 /* Prototype : string date_format ( DateTime $object , string $format ) 14 echo "*** Testing date_format() : error conditions ***\n"; 17 var_dump( date_format() ); 22 var_dump( date_format($date) ); 27 var_dump( date_format($date, $format, $extra_arg) ); 31 var_dump( date_format($invalid_obj, $format) ); 33 var_dump( date_format($invalid_obj, $format) ); 35 var_dump( date_format($invalid_obj, $format) ); 40 *** Testing date_format() : error conditions *** [all …]
|
H A D | date_format_variation1.phpt | 2 Test date_format() function : usage variation - Passing unexpected values to first argument $object. 5 /* Prototype : string date_format ( DateTimeInterface $object , string $format ) 11 echo "*** Testing date_format() : usage variation - unexpected values to first argument \$object**… 102 var_dump( date_format($object, $format) ); 111 *** Testing date_format() : usage variation - unexpected values to first argument $object*** 150 Warning: date_format() expects parameter 1 to be DateTimeInterface, array given in %s on line %d 155 Warning: date_format() expects parameter 1 to be DateTimeInterface, array given in %s on line %d 160 Warning: date_format() expects parameter 1 to be DateTimeInterface, array given in %s on line %d 165 Warning: date_format() expects parameter 1 to be DateTimeInterface, array given in %s on line %d 170 Warning: date_format() expects parameter 1 to be DateTimeInterface, null given in %s on line %d [all …]
|
H A D | date_format_variation2.phpt | 2 Test date_format() function : usage variation - Passing unexpected values to second argument $forma… 5 /* Prototype : string date_format ( DateTime $object , string $format ) 11 echo "*** Testing date_format() : usage variation - unexpected values to second argument \$format*… 102 var_dump( date_format($object, $format) ); 111 *** Testing date_format() : usage variation - unexpected values to second argument $format*** 136 Warning: date_format() expects parameter 2 to be string, array given in %s on line %d 141 Warning: date_format() expects parameter 2 to be string, array given in %s on line %d 146 Warning: date_format() expects parameter 2 to be string, array given in %s on line %d 151 Warning: date_format() expects parameter 2 to be string, array given in %s on line %d 195 Warning: date_format() expects parameter 2 to be string, object given in %s on line %d [all …]
|
H A D | date_isodate_set_basic1.phpt | 21 echo "Week 40 of 2009 is in \"" . date_format($datetime, "F") . "\"\n"; 25 echo "Week 30 day 3 of 2009 is \"" . date_format($datetime, "D M j") . "\"\n"; 29 echo "..same day last year was \"" . date_format($datetime, "D M j") . "\"\n";
|
H A D | date_modify-1.phpt | 9 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 11 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"; 17 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"; 22 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
|
H A D | date_modify-2.phpt | 9 echo date_format($d, 'D, d M Y H:i:s T'), "\n"; 11 echo date_format($d, 'D, d M Y H:i:s T'), "\n";
|
H A D | date_modify_basic1.phpt | 20 echo "After modification 1: " . date_format($datetime, "D, d M Y") . "\n"; 23 echo "After modification 2: " . date_format($datetime, "D, d M Y H:i:s") . "\n"; 26 echo "After modification 3: " . date_format($datetime, "D, d M Y") . "\n"; 29 echo "After modification 4: " . date_format($datetime, "D, d M Y") . "\n";
|
H A D | date_time_set_basic1.phpt | 19 echo "Initial date: " . date_format($datetime, DATE_RFC2822) . "\n"; 22 echo "After modification1 " . date_format($datetime, DATE_RFC2822) . "\n"; 25 echo "After modification2 " . date_format($datetime, DATE_RFC2822) . "\n"; 28 echo "After modification3 " . date_format($datetime, DATE_RFC2822) . "\n"; 31 echo "After modification4 " . date_format($datetime, DATE_RFC2822) . "\n"; 34 echo "After modification5 " . date_format($datetime, DATE_RFC2822) . "\n";
|
H A D | date_timestamp_set.phpt | 16 var_dump(date_format($dtms021, 'B => (U) => T Y-M-d H:i:s'));
|
H A D | rfc-datetime_and_daylight_saving_time-type1.phpt | 9 $date_format = 'Y-m-d H:i:s 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 D | rfc-datetime_and_daylight_saving_time-type2.phpt | 9 $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 …]
|