* Bug 14488 fixed: plot2d frameflag=9 restored & clarified
[scilab.git] / scilab / modules / time / help / ja_JP / getdate.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  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
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" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="getdate">
17     <refnamediv>
18         <refname>getdate</refname>
19         <refpurpose>日付と時間に関する情報を取得</refpurpose>
20     </refnamediv>
21     <refsynopsisdiv>
22         <title>呼び出し手順</title>
23         <synopsis>dt=getdate()
24             x=getdate("s")
25             dt=getdate(x)
26         </synopsis>
27     </refsynopsisdiv>
28     <refsection>
29         <title>パラメータ</title>
30         <variablelist>
31             <varlistentry>
32                 <term>dt</term>
33                 <listitem>
34                     <para>10個の要素を有する整数ベクトル (下記参照)</para>
35                 </listitem>
36             </varlistentry>
37             <varlistentry>
38                 <term>x</term>
39                 <listitem>
40                     <para>1970年1月1日からの経過秒数で表された日付を有する整数</para>
41                 </listitem>
42             </varlistentry>
43         </variablelist>
44     </refsection>
45     <refsection>
46         <title>説明</title>
47         <variablelist>
48             <varlistentry>
49                 <term>dt=getdate()</term>
50                 <listitem>
51                     <para>現在の日付を以下の形式で返します:</para>
52                     <variablelist>
53                         <varlistentry>
54                             <term>dt(1)</term>
55                             <listitem>
56                                 <para>   0000 と 9999の間の数で表された(世紀を含む)年.</para>
57                             </listitem>
58                         </varlistentry>
59                         <varlistentry>
60                             <term>dt(2)</term>
61                             <listitem>
62                                 <para>01 と 12の間の数で表された月.</para>
63                             </listitem>
64                         </varlistentry>
65                         <varlistentry>
66                             <term>dt(3)</term>
67                             <listitem>
68                                 <para>01 と 53の間の数で表されたISO 8601形式の週番号.</para>
69                             </listitem>
70                         </varlistentry>
71                         <varlistentry>
72                             <term>dt(4)</term>
73                             <listitem>
74                                 <para>
75                                     001 と 366の間の数で表されたユリウス日
76                                 </para>
77                             </listitem>
78                         </varlistentry>
79                         <varlistentry>
80                             <term>dt(5)</term>
81                             <listitem>
82                                 <para>
83                                     [1,7]の範囲の10進数で表された曜日, 1は日曜日に対応.
84                                 </para>
85                             </listitem>
86                         </varlistentry>
87                         <varlistentry>
88                             <term>dt(6)</term>
89                             <listitem>
90                                 <para>01 と 31の間の数で表された月内の日数.</para>
91                             </listitem>
92                         </varlistentry>
93                         <varlistentry>
94                             <term>dt(7)</term>
95                             <listitem>
96                                 <para>
97                                     00 と 23の間の数で表された1日内の時間.
98                                 </para>
99                             </listitem>
100                         </varlistentry>
101                         <varlistentry>
102                             <term>dt(8)</term>
103                             <listitem>
104                                 <para>
105                                     出力は00と59の間の数で表された分.
106                                 </para>
107                             </listitem>
108                         </varlistentry>
109                         <varlistentry>
110                             <term>dt(9)</term>
111                             <listitem>
112                                 <para>
113                                     出力は00と59の間の数で表された秒.
114                                 </para>
115                             </listitem>
116                         </varlistentry>
117                         <varlistentry>
118                             <term>dt(10)</term>
119                             <listitem>
120                                 <para>
121                                     出力は000と999の間の数で表されたミリ秒.
122                                 </para>
123                             </listitem>
124                         </varlistentry>
125                     </variablelist>
126                 </listitem>
127             </varlistentry>
128             <varlistentry>
129                 <term>x=getdate("s")</term>
130                 <listitem>
131                     <para>
132                         1970年1月1日, 00:00 UTC (Unix Time Convention)からの経過
133                         秒数をスカラーとして返します.
134                     </para>
135                 </listitem>
136             </varlistentry>
137             <varlistentry>
138                 <term>dt=getdate(x)</term>
139                 <listitem>
140                     <para>
141                         x (1970年1月1日, 00:00 UTC からの経過秒数)により指定した
142                         日付を上記の形式で成形します.
143                         この場合, dt(10) は常に 0となります.
144                     </para>
145                 </listitem>
146             </varlistentry>
147         </variablelist>
148     </refsection>
149     <refsection>
150         <title>例</title>
151         <programlisting role="example"><![CDATA[
152 w=getdate()
153 mprintf("Year:%d,Month:%d,Day:%d",w(1),w(2),w(6));
154 x=getdate("s")
155 getdate(x)
156  ]]></programlisting>
157     </refsection>
158     <refsection role="see also">
159         <title>参照</title>
160         <simplelist type="inline">
161             <member>
162                 <link linkend="date">date</link>
163             </member>
164             <member>
165                 <link linkend="timer">timer</link>
166             </member>
167         </simplelist>
168     </refsection>
169 </refentry>