mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
d22ce6b9c9
commit
41f7d3c5c7
1 changed files with 1 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue