New examples (from now) 39/8839/2
Sylvestre Ledru [Tue, 28 Aug 2012 09:57:37 +0000 (11:57 +0200)]
Change-Id: I4655246506e24afccf24c014f23f80bca7c7817e

scilab/modules/time/help/en_US/realtime.xml
scilab/modules/time/help/ja_JP/realtime.xml

index 6b850e4..7a08a96 100644 (file)
         <programlisting role="example"><![CDATA[ 
 realtimeinit(1/2);//sets time unit to half a second
 realtime(0);//sets current date to 0
-for k=1:10,realtime(k);mprintf('current time is '+string(k/2)+'sec .\r\n');end
+for k=1:10
+  realtime(k);
+  mprintf('current time is '+string(k/2)+'sec .\r\n');
+end
+
 //next instruction outputs a dot each 2 seconds
- realtimeinit(2); realtime(0);for k=1:10,realtime(k);mprintf('.\r\n');end
+realtimeinit(2);
+realtime(0);
+for k=1:10
+  realtime(k);
+  mprintf('.\r\n');
+end
 
-realtimeinit(1);realtime(0);
-dt=getdate('s'); realtime(10);   getdate('s')-dt
+realtimeinit(1);
+realtime(0);
+dt=getdate('s');
+realtime(10);
+getdate('s')-dt
  ]]></programlisting>
     </refsection>
+        <programlisting role="example"><![CDATA[ 
+realtimeinit(1);
+realtime(0);
+t1 = now()
+datevec(t1)
+realtime(10);
+t1 = now()
+datevec(t1)
+ ]]></programlisting>
+
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">
index 07d5c2f..ab13ce6 100644 (file)
         <programlisting role="example"><![CDATA[ 
 realtimeinit(1/2);//時間の単位を 0.5秒に設定s
 realtime(0);// カレントの時刻を 0に設定
-for k=1:10,realtime(k);mprintf('current time is '+string(k/2)+'sec .\r\n');end
+for k=1:10
+  realtime(k);
+  mprintf('current time is '+string(k/2)+'sec .\r\n');
+end
+
 //次の命令では2秒毎にドットを出力
- realtimeinit(2); realtime(0);for k=1:10,realtime(k);mprintf('.\r\n');end
+realtimeinit(2);
+realtime(0);
+for k=1:10
+  realtime(k);
+  mprintf('.\r\n');
+end
 
-realtimeinit(1);realtime(0);
-dt=getdate('s'); realtime(10);   getdate('s')-dt
+realtimeinit(1);
+realtime(0);
+dt=getdate('s');
+realtime(10);
+getdate('s')-dt
+ ]]></programlisting>
+        <programlisting role="example"><![CDATA[ 
+realtimeinit(1);
+realtime(0);
+t1 = now()
+datevec(t1)
+realtime(10);
+t1 = now()
+datevec(t1)
  ]]></programlisting>
+
     </refsection>
     <refsection role="see also">
         <title>参照</title>