cvs: phpdoc /ja/functions datetime.xml ibase.xml readline.xml
| From: | Rui Hirokawa | Date: | Sun, 11 Mar 2001 23:12:43 +0000 |
| Subject: | cvs: phpdoc /ja/functions datetime.xml ibase.xml readline.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969334643@lists.php.net to get a copy of this message | ||
hirokawa Sun Mar 11 15:12:43 2001 EDT
Modified files:
/phpdoc/ja/functions datetime.xml ibase.xml readline.xml
Log:
update translation.
Index: phpdoc/ja/functions/datetime.xml
diff -u phpdoc/ja/functions/datetime.xml:1.18 phpdoc/ja/functions/datetime.xml:1.19
--- phpdoc/ja/functions/datetime.xml:1.18 Sat Feb 3 17:05:22 2001
+++ phpdoc/ja/functions/datetime.xml Sun Mar 11 15:12:43 2001
@@ -233,12 +233,38 @@
</example>
</para>
<para>
+ <function>date</function>
ãã©ã¼ãããã®ããã¤ãã®ä¾ã示ãã¾ãã
+
ç¾å¨ã®å®è£
ã§ç¹å¥ãªæå³ãããæåãä»å¾ã®PHPã®ãã¼ã¸ã§ã³ã§æå³ãå²
+
ãä»ããããã§ãããæåã«ã¤ãã¦ã¯ãæã¾ãããªãçµæãé¿ãããã
+
ã«ã¨ã¹ã±ã¼ãããå¿
è¦ããããã¨ã«æ³¨æãã¦ä¸ãããã¨ã¹ã±ã¼ãããã
+ éã«ã¯ãæ¹è¡æå \n
ã®ãããªæåãåé¿ããããã«ã·ã³ã°ã«ã¼ã¯ãªã¼
+ ãã使ç¨ãã¦ä¸ããã
+ <example>
+ <title>
+ <function>date</function> ã«ãããã©ã¼ããã
+ </title>
+ <programlisting role="php">
+/* 仿¥ã¯ãMarch 10th, 2001, 5:16:18 pm ã§ãã */
+$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, g, Y"); // 10, 3, 2001
+$today = date("Ymd"); // 20010310
+$today = date('h-i-s, j-m-y, it is w Day z '); // 05-16-17, 10-03-01, 1631 1618 6
Fripm01
+$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 15:16:08 MST 2001
+$today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:17 m is month
+$today = date("H:i:s"); // 17:16:17
+ </programlisting>
+ </example>
+ </para>
+ <para>
ä»ã®è¨èªã§æ¥ä»ããã©ã¼ãããããããã«ã¯ã
<function>setlocale</function> ããã³
<function>strftime</function>
颿°ã使ç¨ããå¿
è¦ãããã¾ãã
</para>
<para>
- <function>gmdate</function>,
<function>mktime</function>ãåç
§ä¸ããã
+ <function>gmdate</function>,
<function>mktime</function>ãåç
§ä¸
+ ããã
</para>
</refsect1>
</refentry>
@@ -316,6 +342,16 @@
</simpara>
</listitem>
</itemizedlist>
+ <example>
+ <title><function>getdate</function> ã®ä¾</title>
+ <programlisting>
+$today = getdate();
+$month = $today[month];
+$mday = $today[mday];
+$year = $today[year];
+echo "$month $mday, $year";
+ </programlisting>
+ </example>
</para>
</refsect1>
</refentry>
@@ -534,7 +570,7 @@
</listitem>
<listitem>
<simpara>
- "tm_year" - å¹´ãy2kæªå¯¾å¿
+ "tm_year" - å¹´ã1900å¹´ããã®å¹´
</simpara>
</listitem>
<listitem>
@@ -577,6 +613,29 @@
(1970å¹´1æ1æ¥
00:00:00)ããã®éç®ç§ã¨ãããã®ã§ãmsec ã¯
ãã¤ã¯ãç§ã®é¨åã§ãããã®é¢æ°ã¯ãã·ã¹ãã ã³ã¼ã«
gettimeofday() ã
ãµãã¼ããããªãã¬ã¼ãã£ã³ã°ã»ã·ã¹ãã ä¸ã§ã®ã¿ä½¿ç¨å¯è½ã§ãã
+ </para>
+ <para>
+
æååã¯ãã¨ãã«ç§åä½ã§è¿ããã¾ãã
+ <example>
+ <title><function>microtime</function> ã®ä¾</title>
+ <programlisting role="php">
+function getmicrotime(){
+ list($sec, $usec) = explode(" ",microtime());
+ return ($sec + $usec);
+ }
+
+$time_start = getmicrotime();
+
+for ($i=0; $i < 1000; $i++){
+ // ä½ãããªãã1000 åã«ã¼ã
+ }
+
+$time_end = getmicrotime();
+$time = $time_end - $time_start;
+
+echo "$time ç§éä½ããã¾ããã§ããã";
+ </programlisting>
+ </example>
</para>
<para>
<function>time</function>ãåç
§ä¸ããã
Index: phpdoc/ja/functions/ibase.xml
diff -u phpdoc/ja/functions/ibase.xml:1.12 phpdoc/ja/functions/ibase.xml:1.13
--- phpdoc/ja/functions/ibase.xml:1.12 Thu Jan 4 22:29:04 2001
+++ phpdoc/ja/functions/ibase.xml Sun Mar 11 15:12:43 2001
@@ -366,7 +366,7 @@
$rs=ibase_query("Select * from something");
$coln = ibase_num_fields($rs);
-for ($i=0 ; $i < $coln ; $i++) {
+for ($i=0 ; $i < $coln ; $i++) {
$col_info = ibase_field_info($rs, $i);
echo "name: ".$col_info['name']."\n";
echo "alias: ".$col_info['alias']."\n";
Index: phpdoc/ja/functions/readline.xml
diff -u phpdoc/ja/functions/readline.xml:1.3 phpdoc/ja/functions/readline.xml:1.4
--- phpdoc/ja/functions/readline.xml:1.3 Thu Jan 4 22:29:05 2001
+++ phpdoc/ja/functions/readline.xml Sun Mar 11 15:12:43 2001
@@ -47,8 +47,7 @@
<title><function>readline</function></title>
<programlisting role="php">
// ã¦ã¼ã¶ãã3åã³ãã³ããåå¾
-for($i=0; $i < 3; $i++)
-{
+for ($i=0; $i < 3; $i++) {
$line = readline("Command: ");
readline_add_history($line);
}