cvs: phpdoc /en/reference/datetime/functions date.xml
| From: | Daniel P. Brown | Date: | Mon, 26 Jan 2009 20:42:39 +0000 |
| Subject: | cvs: phpdoc /en/reference/datetime/functions date.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3093@lists.php.net to get a copy of this message | ||
danbrown Mon Jan 26 20:42:39 2009 UTC
Modified files:
/phpdoc/en/reference/datetime/functions date.xml
Log:
Updates the example with several bugfixes, reverses typo by joey, includes a patch by thiago.
Remember, 'm' is 'month', 'i' is 'minute'. ;-P
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/datetime/functions/date.xml?r1=1.44&r2=1.45&diff_format=u
Index: phpdoc/en/reference/datetime/functions/date.xml
diff -u phpdoc/en/reference/datetime/functions/date.xml:1.44
phpdoc/en/reference/datetime/functions/date.xml:1.45
--- phpdoc/en/reference/datetime/functions/date.xml:1.44 Mon Jan 12 07:02:19 2009
+++ phpdoc/en/reference/datetime/functions/date.xml Mon Jan 26 20:42:35 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.44 $ -->
+<!-- $Revision: 1.45 $ -->
<refentry xml:id="function.date" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>date</refname>
@@ -439,16 +439,17 @@
<programlisting role="php">
<![CDATA[
<?php
-// Assuming today is: March 10th, 2001, 5:16:18 pm
+// Assuming today is March 10th, 2001, 5:16:18 pm, and that we are in the
+// Mountain Standard Time (MST) Time Zone
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
$today = date("m.d.y"); // 03.10.01
$today = date("j, n, Y"); // 10, 3, 2001
$today = date("Ymd"); // 20010310
-$today = date('h-i-s, j-m-y, it is w Day'); // 05-16-16, 10-03-01, 1631 1616 6
Fripm01
-$today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // It is the 10th day.
+$today = date('h-i-s, j-m-y, it is w Day'); // 05-16-18, 10-03-01, 1631 1618 6
Satpm01
+$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:16:18 m is month
+$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
?>
]]>