Added MySQL datetime format example. Patch by Ben Kuhl.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327190 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2012-08-20 19:06:11 +00:00
parent d22ce6b9c9
commit 41f7d3c5c7

View file

@ -460,6 +460,7 @@ $today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // it is the 10th day.
$today = date("D M j G:i:s T Y"); // Sat Mar 10 17:16:18 MST 2001
$today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:18 m is month
$today = date("H:i:s"); // 17:16:18
$today = date("Y-m-d H:i:s"); // 2001-03-10 17:16:18 (the MySQL DATETIME format)
?>
]]>
</programlisting>