ef7e20175022653cf676b8ba0b8d0bce27479615
[scilab.git] / scilab / modules / time / help / ja_JP / calendar.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) INRIA -
5  * Copyright (C) 2012 - 2016 - Scilab Enterprises
6  * Copyright (C) 2019 - Samuel GOUGEON
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17           xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
18           xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
19           xml:lang="ja" xml:id="calendar">
20     <refnamediv>
21         <refname>calendar</refname>
22         <refpurpose>カレンダー</refpurpose>
23     </refnamediv>
24     <refsynopsisdiv>
25         <title>呼び出し手順</title>
26         <synopsis>
27             calendar display;
28             calendar(y, m, "display");
29             c = calendar()
30             c = calendar(y,m)
31         </synopsis>
32     </refsynopsisdiv>
33     <refsection>
34         <title>設定</title>
35         <variablelist>
36             <varlistentry>
37                 <term>y</term>
38                 <listitem>
39                     <para>integer in [1800 3000]: The Gregorian year.</para>
40                 </listitem>
41             </varlistentry>
42             <varlistentry>
43                 <term>m</term>
44                 <listitem>
45                     <para>integer in [1, 12]: The month.</para>
46                 </listitem>
47             </varlistentry>
48             <varlistentry>
49                 <term>c</term>
50                 <listitem>
51                     <para>list, with
52                         <table>
53                             <tr><th>c(1):</th><td>single string: The calendar title</td></tr>
54                             <tr><th>c(2):</th><td>single string: Days names</td></tr>
55                             <tr><th>c(3):</th><td>6x7 matrix of days indices in the month
56                                                     (0 for days out of the month)</td>
57                             </tr>
58                         </table>
59                     </para>
60                     <para>
61                         The title and days names are translated according to the current language.
62                     </para>
63                 </listitem>
64             </varlistentry>
65         </variablelist>
66     </refsection>
67     <refsection>
68         <title>説明</title>
69         <para>c = calendar() は現在の月に関するカレンダーを含むリストを返します.
70             週は月曜日に始まり、日曜日に終わる.
71         </para>
72         <para>c = calendar(y,m), ただし, y および m は整数で, 指定した年の
73             指定した月のカレンダーを返します.
74         </para>
75         <para>
76             <emphasis role="bold">calendar display</emphasis>; displays in the console the
77             calendar of the current month.
78         </para>
79         <para>
80             <emphasis role="bold">calendar(y,m,"display")</emphasis>; displays in the console the
81             calendar of the month <varname>m</varname> for the year <varname>y</varname>.
82         </para>
83     </refsection>
84     <refsection>
85         <title>例</title>
86         <programlisting role="example"><![CDATA[
87 calendar
88  ]]></programlisting>
89       <screen><![CDATA[
90 --> calendar
91  ans  =
92        ans(1)
93  12月 2019
94
95        ans(2)
96  月   火   水    木   金    土   日
97
98        ans(3)
99    0.    0.    0.    0.    0.    0.    1. 
100    2.    3.    4.    5.    6.    7.    8. 
101    9.    10.   11.   12.   13.   14.   15.
102    16.   17.   18.   19.   20.   21.   22.
103    23.   24.   25.   26.   27.   28.   29.
104    30.   31.   0.    0.    0.    0.    0. 
105 ]]></screen>
106         <para/>
107         <programlisting role="example"><![CDATA[
108 calendar display;
109  ]]></programlisting>
110       <screen><![CDATA[
111 --> calendar display
112  
113              12月 2019
114  月   火   水    木   金    土   日
115                                 1
116   2    3    4    5    6    7    8
117   9   10   11   12   13   14   15
118  16   17   18   19   20   21   22
119  23   24   25   26   27   28   29
120  30   31                         
121 ]]></screen>
122         <para/>
123         <programlisting role="example"><![CDATA[
124 calendar(1973, 8, "display");
125  ]]></programlisting>
126       <screen><![CDATA[
127 --> calendar(1973, 8, "display");
128  
129              8月 1973
130  月   火   水    木   金    土   日
131             1    2    3    4    5
132   6    7    8    9   10   11   12
133  13   14   15   16   17   18   19
134  20   21   22   23   24   25   26
135  27   28   29   30   31          
136 ]]></screen>
137     </refsection>
138     <refsection role="see also">
139         <title>参照</title>
140         <simplelist type="inline">
141             <member>
142                 <link linkend="weekday">weekday</link>
143             </member>
144             <member>
145                 <link linkend="datevec">datevec</link>
146             </member>
147             <member>
148                 <link linkend="datenum">datenum</link>
149             </member>
150         </simplelist>
151     </refsection>
152     <refsection role="history">
153         <title>履歴</title>
154         <revhistory>
155             <revision>
156                 <revnumber>6.1</revnumber>
157                 <revdescription>
158                     "display" option added.
159                 </revdescription>
160             </revision>
161         </revhistory>
162     </refsection>
163 </refentry>