Lines Matching refs:format
2 Test DateTime::format() function : basic functionality
5 /* Prototype : public string DateTime::format ( string $format )
6 * Description: Returns date formatted according to given format
14 echo "*** Testing DateTime::format() : basic functionality ***\n";
17 var_dump( $date->format( "F j, Y, g:i a") );
18 var_dump( $date->format( "m.d.y") );
19 var_dump( $date->format( "j, n, Y") );
20 var_dump( $date->format( "Ymd") );
21 var_dump( $date->format( 'h-i-s, j-m-y, it is w Day') );
22 var_dump( $date->format( '\i\t \i\s \t\h\e jS \d\a\y.') );
23 var_dump( $date->format( "D M j G:i:s T Y") );
24 var_dump( $date->format( 'H:m:s \m \i\s\ \m\o\n\t\h') );
25 var_dump( $date->format( "H:i:s") );
30 *** Testing DateTime::format() : basic functionality ***